Response code 503 is returned instead of 404 requesting inexistent queue
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zaqar |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
When we request not existing queue we get following error:
2015-07-22 15:31:32.620 30245 ERROR zaqar.transport
2015-07-22 15:31:32.620 30245 ERROR zaqar.transport
2015-07-22 15:31:32.620 30245 ERROR zaqar.transport
2015-07-22 15:31:32.620 30245 ERROR zaqar.transport
2015-07-22 15:31:32.620 30245 ERROR zaqar.transport
2015-07-22 15:31:32.620 30245 ERROR zaqar.transport
2015-07-22 15:31:32.620 30245 ERROR zaqar.transport
2015-07-22 15:31:32.620 30245 ERROR zaqar.transport
2015-07-22 15:31:32.620 30245 ERROR zaqar.transport
2015-07-22 15:31:32.620 30245 ERROR zaqar.transport
2015-07-22 15:31:32.620 30245 ERROR zaqar.transport
2015-07-22 15:31:32.620 30245 ERROR zaqar.transport
2015-07-22 15:31:32.620 30245 ERROR zaqar.transport
2015-07-22 15:31:32.620 30245 ERROR zaqar.transport
2015-07-22 15:31:32.620 30245 ERROR zaqar.transport
2015-07-22 15:31:32.620 30245 ERROR zaqar.transport
2015-07-22 15:31:32.620 30245 ERROR zaqar.transport
2015-07-22 15:31:32.620 30245 ERROR zaqar.transport
2015-07-22 15:31:32.620 30245 ERROR zaqar.transport
2015-07-22 15:31:32.620 30245 ERROR zaqar.transport
2015-07-22 15:31:32.620 30245 ERROR zaqar.transport
2015-07-22 15:31:32.620 30245 ERROR zaqar.transport
2015-07-22 15:31:32.620 30245 ERROR zaqar.transport
172.18.198.52 - - [22/Jul/2015 15:31:32] "DELETE /v1.1/queues/
So, we see that internally it knows the reason - "NotFound" but returns improper code. In that case we expect code 404, not 503.
summary: |
- Response code 503 is returned instead of 404 + Response code 503 is returned instead of 404 requesting inexistent queue |
Hi Valeriy, can you please provide more info? Like what's the API request you're using? What's the API version? And why do you think it should return 404? Now, if there is no message to pop, [] will be returned. Thanks.