Services/Sync/Server/API/ResponseCodes/1.0: Difference between revisions

From MozillaWiki
< Services‎ | Sync‎ | Server‎ | API
Jump to navigation Jump to search
No edit summary
(blank page since content on docs.services.m.c)
 
Line 1: Line 1:
{{Warning| This page is now located at http://docs.services.mozilla.com/respcodes.html}}
{{Warning| This page is now located at http://docs.services.mozilla.com/respcodes.html}}
= Weave API Response Codes =
'''200 OK''' -- Returned on a successful request. Note that this does not guarantee that the server has done anything - deleting a nonexistent object will return a 200. The request body will contain the data expected from the transaction or a timestamp associated with the action.
'''400 Bad Request''' -- Will be returned if there was an error in the client's request. Details of the request will be contained in the body code:
{| width="75%" cellpadding="3" align=center
|- style="background-color: #efefef;"
| '''Code'''
| '''Description'''
|- valign="top"
| 1
| Illegal method/protocol
|- valign="top"
| 2
| Incorrect/missing captcha
|- valign="top"
| 3
| Invalid/missing username
|- valign="top"
| 4
| Attempt to overwrite data that can't be overwritten (such as creating a userid that already exists)
|- valign="top"
| 5
| Userid does not match account in path
|- valign="top"
| 6
| Json parse failure
|- valign="top"
| 7
| Missing password field
|- valign="top"
| 8
| Invalid Weave Basic Object
|- valign="top"
| 9
| Requested password not strong enough
|- valign="top"
| 10
| Invalid/missing password reset code
|- valign="top"
| 11
| Unsupported function
|- valign="top"
| 12
| No email address on file
|- valign="top"
| 13
| Invalid collection
|- valign="top"
| 14 (1.1 and up)
| User over quota
|}
'''401 Unauthorized''' -- Valid username and password required.
'''404 Not Found''' -- Returned if the user does not exist. Body does not contain anything useful.
'''412 Precondition Failed''' -- Returned if data in the collection has been updated since the timestamp specified in the X-If-Unmodifed-Since http header.
'''503 Service Unavailable''' -- An internal error (storage failure). Please try back again later. Some explanation may be available in the body.

Latest revision as of 20:39, 15 August 2011

Warning signWarning: This page is now located at http://docs.services.mozilla.com/respcodes.html