404 handler should return 404

This commit is contained in:
Christine Dodrill 2015-07-30 09:23:00 -07:00
parent 75f009dade
commit 8587395399
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,8 @@ main = do
-- 404 handler
S.hookAny S.GET $ \(paths :: [Text]) ->
S.setStatus Status.status404 >>
let slash = Text.pack "/"
path = Text.append slash $ Text.intercalate slash paths
message = "No such page at " ++ (Text.unpack path)