snapframework/snap-core — Issue #122: serveFile shouldn't reset HTTP response code
Author: afcowie
Created: 2012-03-03 04:56:09+00:00
State: open

Doing

serveNotFound :: Snap ()
serveNotFound = do
modifyResponse $ setResponseStatus 404 "Not Found"
serveFile "content/404.html"

really ought to result in an HTTP response status code of 404, but serveFile seems to force the response to 200. As you can see from the above use case, I'm not sure it should do that.

AfC