404 handler should return 404
This commit is contained in:
parent
75f009dade
commit
8587395399
|
@ -39,6 +39,8 @@ main = do
|
||||||
|
|
||||||
-- 404 handler
|
-- 404 handler
|
||||||
S.hookAny S.GET $ \(paths :: [Text]) ->
|
S.hookAny S.GET $ \(paths :: [Text]) ->
|
||||||
|
S.setStatus Status.status404 >>
|
||||||
|
|
||||||
let slash = Text.pack "/"
|
let slash = Text.pack "/"
|
||||||
path = Text.append slash $ Text.intercalate slash paths
|
path = Text.append slash $ Text.intercalate slash paths
|
||||||
message = "No such page at " ++ (Text.unpack path)
|
message = "No such page at " ++ (Text.unpack path)
|
||||||
|
|
Loading…
Reference in New Issue