When calling the overdrive_proxy service, if for some reason the
credentials are not accepted by OverDrive, return HTTP status 400
(as intended) rather than an internal server error.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
if ( !IsOverDriveEnabled() || !( $token = GetOverDriveToken() ) ) {
print $query->header(
-status => '400 Bad Request',
if ( !IsOverDriveEnabled() || !( $token = GetOverDriveToken() ) ) {
print $query->header(
-status => '400 Bad Request',