Difference between revisions of "Zaqar/specs/api/v1/responsecodes"
< Zaqar | specs/api/v1
(→Create Queue) |
(→List Queues) |
||
Line 33: | Line 33: | ||
| URL has invalid param (something other than limit,marker,metadata) || | | URL has invalid param (something other than limit,marker,metadata) || | ||
|- | |- | ||
− | | Request with negative value for limit || | + | | Request with negative value for limit || 400 |
|- | |- | ||
| Request with non existing value of marker || | | Request with non existing value of marker || | ||
|- | |- | ||
− | | Request with non boolean value for metadata || | + | | Request with non boolean value for metadata || 400 |
|} | |} |
Revision as of 15:13, 25 March 2013
Contents
Create Queue
Error Scenario | HTTP Response Code |
---|---|
Request Body is Empty | 400 |
Request Body has toplevel field starting with underscore | |
Request header has missing fields | 400 |
Request header has invalid auth token | 401 |
Request header has Accept != "application/json" | |
Request body is >4KB | |
Request body has malformed JSON | 400 |
Queue has a long name (>512 bytes) |
List Queues
Error Scenario | HTTP Response Code |
---|---|
Request a non existing queue | |
URL has invalid param (something other than limit,marker,metadata) | |
Request with negative value for limit | 400 |
Request with non existing value of marker | |
Request with non boolean value for metadata | 400 |
Set Queue Metadata
same as create queue ?
Get Queue Metadata
Error Scenario | HTTP Response Code |
---|---|
Request metadata for a non existing queue |
Get Queue Stats
Error Scenario | HTTP Response Code |
---|---|
Request stats for a non existing queue |
Delete Queue
Error Scenario | HTTP Response Code |
---|---|
Delete a non existing queue |