Return Status Codes
CommonSpot returns the following status codes:
- 200 OK
- 204 No Content - Request completed but returned no data
- 304 Not Modified
- 400 Bad Request XML
- 401 Unauthorized - Not logged in as a contributor
- 403 Forbidden - Security or permissions error
- 404 File Not Found
- 405 Method Not Allowed - Permanently invalid context (ROPS...)
- 409 Conflict - Command specific error; status text contains the error message
- 503 Service Unavailable - Authoring temporarily disabled; status text contains the message given when disabling
- 503.1 Service Unavailable - A Schema upgrade is required, the CommonSpot server key is corrupted, or some other fatal startup error has occurred
- 503.2 Service Unavailable - Server key is invalid
- 550 ColdFusion Error
- 560 CommonSpot Internal Error
When calling the API through an HTTP XML request, CommonSpot returns a status code for each command in the command collection. See XML Results Structure for more information.
If a method throws an error when being called natively from ColdFusion code, the status code is returned as part of the CFCATCH structure. If the method is successful, you can assume that the status code is 200 OK. For more information, see Error Handling and Status Codes.