diff options
author | David Lawrence <dkl@mozilla.com> | 2014-11-11 04:17:10 +0100 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2014-11-11 04:17:10 +0100 |
commit | 2d223dcbe7bf5c045a11ea489a0964129518731e (patch) | |
tree | 28c45230ef0b80f5d4f8d5f4a0dc414a89a72f8e /Bugzilla/Hook.pm | |
parent | c2533c1f2e7c5c4376eb0dae17c3380b04067678 (diff) | |
download | bugzilla-2d223dcbe7bf5c045a11ea489a0964129518731e.tar.gz bugzilla-2d223dcbe7bf5c045a11ea489a0964129518731e.tar.xz |
Bug 1089805: BzAPI compatibility layer returns HTTP 200 when a bug update failed
Diffstat (limited to 'Bugzilla/Hook.pm')
-rw-r--r-- | Bugzilla/Hook.pm | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm index fff102232..942623dcf 100644 --- a/Bugzilla/Hook.pm +++ b/Bugzilla/Hook.pm @@ -1701,6 +1701,26 @@ The current JSONRPC, XMLRPC, or REST object. =back +=head2 wevservice_status_code_map + +This hook allows an extension to change the status codes returned by +specific webservice errors. The valid internal error codes that Bugzilla +generates, and the status codes they map to by default, are defined in the +C<WS_ERROR_CODE> constant in C<Bugzilla::WebService::Constants>. When +remapping an error, you may wish to use an existing status code constant. +Such constants are also in C<Bugzilla::WebService::Constants> and start +with C<STATUS_*> such as C<STATUS_BAD_REQUEST>. + +Params: + +=over + +=item C<status_code_map> + +A hash reference containing the current status code mapping. + +=back + =head1 SEE ALSO L<Bugzilla::Extension> |