Danek Duvall wrote:
Mark J. Nelson wrote:
http://cr.opensolaris.org/~mjnelson/webrev.pkg-index-control/
depot.py:
- line 729: I forget -- is there a reason we can't send back a 5xx error
code? (This may be more of a question for Shawn.) Alternatively, why
can't both error returns be NOT_FOUND? See file_0().
We currently don't send back 5xx error codes because that causes Apache
to think that the backend has stopped working and it will refuse requests.
We don't send 404 for most of the failed operations because
versioned_urlopen will interpret that to mean that the server doesn't
support this operation as opposed to the operation failing. This comes
back to us not having upgraded to the newest version of cherrypy yet,
which would allow us to have custom status messages (i.e. 404 No write
permissions on search indices.).
Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss