diff --git a/src/routes/uuid.go b/src/routes/uuid.go index a57c1a9..fb77541 100644 --- a/src/routes/uuid.go +++ b/src/routes/uuid.go @@ -22,5 +22,12 @@ func UUIDHandler(ctx *fasthttp.RequestCtx) { return } + if len(uuid) < 1 { + ctx.SetStatusCode(404) + ctx.SetBodyString(http.StatusText(http.StatusNotFound)) + + return + } + ctx.SetBodyString(uuid) }