From 2d223dcbe7bf5c045a11ea489a0964129518731e Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 11 Nov 2014 11:17:10 +0800 Subject: Bug 1089805: BzAPI compatibility layer returns HTTP 200 when a bug update failed --- Bugzilla/Hook.pm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'Bugzilla/Hook.pm') 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 constant in C. When +remapping an error, you may wish to use an existing status code constant. +Such constants are also in C and start +with C such as C. + +Params: + +=over + +=item C + +A hash reference containing the current status code mapping. + +=back + =head1 SEE ALSO L -- cgit v1.2.3-24-g4f1b