On 11/1/07, Neale <neale@nealeupstone.com> wrote:
> For example, it's much easier to ensure we're handing errors correctly
> when the code we've used as our basis reads:
> return new
> EmptyResponseContext(HttpServletResponse.SC_NOT_FOUND);
> instead of
> return new EmptyResponseContext(404);
disagree. i much prefer the brevity of the numeric codes. they are
extremely well known; there's no excuse for misinterpreting a 404
response code. the argument for misinterpretation is slightly stronger
for less well known ones like say 422 and 423, but that's such a small
set that it's trivially learned.
|