LP1406025: Provide graceful human output for HTTP errors
authorDan Scott <dscott@laurentian.ca>
Sun, 28 Dec 2014 03:35:37 +0000 (22:35 -0500)
committerDan Scott <dscott@laurentian.ca>
Sun, 11 Jan 2015 02:36:13 +0000 (21:36 -0500)
commitfacf495a28b75a44a4661ab7bb38c30547acdfb8
tree3e6438fe863e797a9077d914579d8d3582ab9223
parenta871d150c8683ee8e9f29a1cc1c00d5b306c1fa3
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