]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP1406025: Provide graceful human output for HTTP errors user/dbs/lp1406025_tpac_http_4xx_codes
authorDan Scott <dscott@laurentian.ca>
Sun, 28 Dec 2014 03:35:37 +0000 (22:35 -0500)
committerDan Scott <dscott@laurentian.ca>
Sun, 28 Dec 2014 03:35:37 +0000 (22:35 -0500)
commit6af67ee641bdc4b8782312654fff73968a4f3149
treef595a0698277858b544728e0b368e959a54688f5
parent9e62e25e0b2d740feb28936c9c1ac04216556854
LP1406025: 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>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm