The Rackspace Cloud Fee API uses standard HTTP/1.1 response codes.
Response code for subscribers
Code category | Code | Code description | Example request | Example response |
---|---|---|---|---|
Successful | 200 | OK | GET request to collection URI | 200 + Atom feed document |
Successful | 200 | OK | GET request to Member URI | 200 + Member Representation |
Client Error | 401 | None | GET request with a missing, expired, or invalid token | None |
Client Error | 404 | None | GET request to non-existent page | None |
Client Error | 405 | None | Using any method other than GET | None |
Server Error | 500 | Internal server error | None |
Example: Error message example
HTTP/1.1 400 Bad Request
Content-Type: application/json
{
"title": "Unsupported limit",
"description": "The given limit cannot be negative, and cannot be greater than 50.",
"code": 1092,
"link": {
"rel": "help",
"href": "http://docs.example.com/messages#limit",
"text": "API documentation for the limit parameter"
}
}