Difference between revisions of "Zaqar/specs/api/v1/responsecodes"
< Zaqar | specs/api/v1
(→List Queues) |
(→List Queues) |
||
Line 29: | Line 29: | ||
! Error Scenario!! HTTP Response Code !! Notes | ! Error Scenario!! HTTP Response Code !! Notes | ||
|- | |- | ||
− | | Request a non existing queue || 404 | + | | Request a non existing queue || 404 || |
|- | |- | ||
| URL has invalid param (something other than limit,marker,metadata) || 200 || Extra params are ignored. | | URL has invalid param (something other than limit,marker,metadata) || 200 || Extra params are ignored. | ||
|- | |- | ||
− | | Request with negative value for limit || 400 | + | | Request with negative value for limit || 400 || |
|- | |- | ||
− | | Request with zero value for limit || 400 | + | | Request with zero value for limit || 400 || |
|- | |- | ||
− | | Request with non existing value of marker || What does Swift do? | + | | Request with non existing value of marker || || What does Swift do? |
|- | |- | ||
− | | Request with non boolean value for metadata || 400 | + | | Request with non boolean value for metadata || 400 || |
|} | |} |
Revision as of 16:01, 25 March 2013
Contents
Create Queue
Error Scenario | HTTP Response Code |
---|---|
Request Body is Empty | 400 |
Request Body has toplevel field starting with underscore | 400 |
Request header has missing fields | 400 |
Request header has invalid auth token | 401 |
Request header has Accept != "application/json" | 406 |
Request body is >4KB | 400 |
Request body has malformed JSON | 400 |
Queue has a long name (>512 bytes) | 400 |
List Queues
Error Scenario | HTTP Response Code | Notes |
---|---|---|
Request a non existing queue | 404 | |
URL has invalid param (something other than limit,marker,metadata) | 200 | Extra params are ignored. |
Request with negative value for limit | 400 | |
Request with zero value for limit | 400 | |
Request with non existing value of marker | What does Swift do? | |
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 |