[cse491] Headers for file not found

C. Titus Brown ctb at msu.edu
Mon Nov 2 19:56:09 PST 2009


On Mon, Nov 02, 2009 at 10:53:13PM -0500, Joseph Christian Blossom wrote:
> Hey,
> So, what exactly should I be sending back for file not found...

404 Not Found

> And, if there is a file read error, should I send back file not found? (As
> in, it was able to open the file, but reading failed)

You can treat that condition as undefined -- e.g. either a 404, or a 500
Internal server error, or whatever you want (probably not a 200 OK...)

--t
-- 
C. Titus Brown, ctb at msu.edu



More information about the cse491-fall-2009 mailing list