diff options
Diffstat (limited to 'web/bubblegum/examples/blog.nix')
-rw-r--r-- | web/bubblegum/examples/blog.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web/bubblegum/examples/blog.nix b/web/bubblegum/examples/blog.nix index f79ab0627e88..213fbb7d19ba 100644 --- a/web/bubblegum/examples/blog.nix +++ b/web/bubblegum/examples/blog.nix @@ -108,24 +108,24 @@ let if pathInfo == "/" then { title = "blog"; - status = "OK"; + status = 200; inner = index posts; } else if !(validatePathInfo pathInfo) then { title = "Bad Request"; - status = "Bad Request"; + status = 400; inner = "No slashes in post names 😡"; } # CGI should already url.decode for us else if builtins.pathExists (blogdir + "/" + pathInfo) then rec { title = parseTitle pathInfo; - status = "OK"; + status = 200; inner = post title pathInfo; } else { title = "Not Found"; - status = "Not Found"; + status = 404; inner = "<h1>404 — not found</h1>"; }; in |