summaryrefslogtreecommitdiff
path: root/src/Network
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2009-12-27 17:14:16 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2009-12-27 17:14:16 +0100
commit8590e0de81fdfb142abf71aecf1428cd5ba85f62 (patch)
treeb3ab585f184c6a40c02a45290afa484db19f48fd /src/Network
parentca2e161dd9ef48e4d8db86bff87122d68bc7cb7f (diff)
downloadhakyll-8590e0de81fdfb142abf71aecf1428cd5ba85f62.tar.gz
Not Found is 404, not 400.
Diffstat (limited to 'src/Network')
-rw-r--r--src/Network/Hakyll/SimpleServer.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Network/Hakyll/SimpleServer.hs b/src/Network/Hakyll/SimpleServer.hs
index 91bac99..5d5d0c2 100644
--- a/src/Network/Hakyll/SimpleServer.hs
+++ b/src/Network/Hakyll/SimpleServer.hs
@@ -73,7 +73,7 @@ createGetResponse request = do
else B.unpack (requestURI request)
exists <- doesFileExist fileName
if exists then catch (create200 fileName) create500
- else return $ errorResponse 400 (B.pack "Not Found")
+ else return $ errorResponse 404 (B.pack "Not Found")
where create200 fileName = do
body <- B.readFile fileName
let headers = [ (B.pack "Content-Length", B.pack $ show $ B.length body)