API returns HTTP 500 when resource is not found
Bug #1200517 reported by
Martyn Taylor
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Fix Released
|
High
|
Vitaly Kostenko |
Bug Description
Ironic should return a HTTP 404 when resources are not found. Right now 500s are returned throughout the API.
e.g.
$ curl -H "accept: application/json" http://
HTTP/1.0 500 Internal Server Error
Date: Fri, 12 Jul 2013 07:47:21 GMT
Server: WSGIServer/0.1 Python/2.7.3
Content-Type: application/json
Content-Length: 119
{"error_message": "{\"debuginfo\": null, \"faultcode\": \"Server\", \"faultstring\": \"Node 12 could not be found.\"}"}
Changed in ironic: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in ironic: | |
assignee: | nobody → Vitaly Kostenko (vitalij-ua) |
Changed in ironic: | |
status: | Triaged → In Progress |
Changed in ironic: | |
status: | In Progress → Fix Committed |
Changed in ironic: | |
milestone: | none → icehouse-1 |
status: | Fix Committed → Fix Released |
Changed in ironic: | |
milestone: | icehouse-1 → 2014.1 |
To post a comment you must log in.
Ironic's code looks ok. Problem appears in WSME, described here https:/ /bugs.launchpad .net/wsme/ +bug/1214073.
I've already submit fix. Waiting for review and merge.