From 12eb7b79859d1ee0be9f237d2b097fc4bf42d2c3 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Tue, 13 Jul 2010 15:43:40 -0700 Subject: Bug 412074: Ability to add attachments to a bug via the WebService (Bug.add_attachment) r=timello, a=mkanat --- Bugzilla/WebService/Constants.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Bugzilla/WebService/Constants.pm') diff --git a/Bugzilla/WebService/Constants.pm b/Bugzilla/WebService/Constants.pm index 18d152d3f..8a41db951 100644 --- a/Bugzilla/WebService/Constants.pm +++ b/Bugzilla/WebService/Constants.pm @@ -121,6 +121,16 @@ use constant WS_ERROR_CODE => { user_access_by_id_denied => 505, user_access_by_match_denied => 505, + # Attachment errors are 600-700. + patch_too_large => 600, + local_file_too_large => 600, + file_too_large => 600, + invalid_content_type => 601, + attachment_illegal_url => 602, + file_not_specified => 603, + missing_attachment_description => 604, + attachment_url_disabled => 605, + # Errors thrown by the WebService itself. The ones that are negative # conform to http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php xmlrpc_invalid_value => -32600, -- cgit v1.2.1