]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1406025: Provide graceful human output for HTTP errors
authorDan Scott <dscott@laurentian.ca>
Sun, 28 Dec 2014 03:35:37 +0000 (22:35 -0500)
committerBen Shum <bshum@biblio.org>
Mon, 16 Feb 2015 09:29:42 +0000 (04:29 -0500)
commit40da69d80697b8f09195cac9b065ca38165b73ba
tree6eccd59daa193061c774503135e7b25597aa9336
parent2545634200b3af22cc83f97dda1a2a84461db263
LP#1406025: Provide graceful human output for HTTP errors

For the expected HTTP errors of HTTP_GONE (record deleted)
and HTTP_NOT_FOUND (record never existed), return the HTML
pages that we used to return (red border warning that the
record was deleted, or just an empty template for
non-existing records) so that the user can at least try
another search. However, the HTTP status code gets set to
410 or 404 as expected so that machines can react
accordingly.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm