From b9543e48f33729c4a4560eac2a856af06ed9e9d5 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Mon, 10 Nov 2014 16:08:13 +0000 Subject: Bug 1094858: Create hook in Bugzilla::WebService::Constants to allow overrriding of standard status codes by extensions r=gerv,a=glob --- 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 2904acba1..430d5af49 100644 --- a/Bugzilla/Hook.pm +++ b/Bugzilla/Hook.pm @@ -1704,6 +1704,26 @@ The current JSONRPC, XMLRPC, or REST object. =back +=head2 webservice_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