From: David Lawrence Date: Thu, 10 Jul 2014 11:42:43 +0000 (+0000) Subject: Bug 1036268: REST webservice should return http/404 for invalid methods X-Git-Tag: bugzilla-4.5.5~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a76a897caf17488ce48c1db49a995588850c534;p=thirdparty%2Fbugzilla.git Bug 1036268: REST webservice should return http/404 for invalid methods r=glob,a=glob --- diff --git a/Bugzilla/WebService/Constants.pm b/Bugzilla/WebService/Constants.pm index bedf662985..2c21de15e8 100644 --- a/Bugzilla/WebService/Constants.pm +++ b/Bugzilla/WebService/Constants.pm @@ -246,6 +246,7 @@ use constant REST_STATUS_CODE_MAP => { 410 => STATUS_NOT_AUTHORIZED, 504 => STATUS_NOT_AUTHORIZED, 505 => STATUS_NOT_AUTHORIZED, + 32614 => STATUS_NOT_FOUND, _default => STATUS_BAD_REQUEST };