diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-03-28 23:22:12 +0200 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-03-28 23:22:12 +0200 |
commit | b0edd0ea304eb0b8a31972f4d556ccc4fe644003 (patch) | |
tree | 6ed8e922be9e89c0c80162eb81be0d79767665be /Bugzilla/WebService/Constants.pm | |
parent | b32a0b4336a3182df4896ca207f3f30c264b0061 (diff) | |
download | bugzilla-b0edd0ea304eb0b8a31972f4d556ccc4fe644003.tar.gz bugzilla-b0edd0ea304eb0b8a31972f4d556ccc4fe644003.tar.xz |
Bug 553913: Add explicit error codes to WebService errors that were missing
them
r=dkl, a=mkanat
Diffstat (limited to 'Bugzilla/WebService/Constants.pm')
-rw-r--r-- | Bugzilla/WebService/Constants.pm | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Bugzilla/WebService/Constants.pm b/Bugzilla/WebService/Constants.pm index c7c52fece..19d230759 100644 --- a/Bugzilla/WebService/Constants.pm +++ b/Bugzilla/WebService/Constants.pm @@ -53,8 +53,9 @@ use constant WS_ERROR_CODE => { params_required => 50, object_does_not_exist => 51, param_must_be_numeric => 52, - xmlrpc_invalid_value => 52, + number_not_numeric => 52, param_invalid => 53, + number_too_large => 54, # Bug errors usually occupy the 100-200 range. improper_bug_id_field_value => 100, bug_id_does_not_exist => 101, @@ -85,11 +86,15 @@ use constant WS_ERROR_CODE => { # Comment-related errors comment_is_private => 110, comment_id_invalid => 111, + comment_too_long => 114, # See Also errors bug_url_invalid => 112, bug_url_too_long => 112, # Insidergroup Errors user_not_insider => 113, + # Note: 114 is above in the Comment-related section. + # Bug update errors + illegal_change => 115, # Authentication errors are usually 300-400. invalid_username_or_password => 300, @@ -114,7 +119,10 @@ use constant WS_ERROR_CODE => { invalid_user_group => 504, user_access_by_id_denied => 505, user_access_by_match_denied => 505, - # Fatal errors (must be negative). + + # RPC Server Errors. See the following URL: + # http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php + xmlrpc_invalid_value => -32600, unknown_method => -32601, }; |