[Web-SIG] Use 200 or 400 Status Code When...
Randy Syring
randy at rcs-comp.com
Mon Apr 27 04:32:20 CEST 2009
I have a page that accepts URL arguments like:
/student/<id>
The id must be an integer or the URL doesn't match and the user is given
a 404. But what should I do if the id is given, is an integer, but a
student with that id does not exist? I already output a message telling
the user that they requested an invalid student. However, should that
document have a 200 or 400 (or some other) status code?
Thanks.
--
--------------------------------------
Randy Syring
RCS Computers & Web Solutions
502-644-4776
http://www.rcs-comp.com
"Whether, then, you eat or drink or
whatever you do, do all to the glory
of God." 1 Cor 10:31
More information about the Web-SIG
mailing list