HTTPNotFound response does not contain enough explanation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Ken'ichi Ohmichi |
Bug Description
In each RESTful API, there are useful explanation messages for HTTPNotFound response in the implementation.
However, some messages are not output to the response.
For example, the implementation of the pause action API contains "Server not found" message for nonexistent server error, but now the message is not output into the response like the following:
$ curl -i 'http://
HTTP/1.1 404 Not Found
Content-Length: 78
Content-Type: application/json; charset=UTF-8
X-Compute-
Date: Thu, 27 Feb 2014 10:21:52 GMT
{"itemNotFound": {"message": "The resource could not be found.", "code": 404}}
$
When receiving the above message, client may consider "what is not found? project, server, or action?"
so it is better to output right message into a response.
Changed in nova: | |
assignee: | nobody → Ken'ichi Ohmichi (oomichi) |
description: | updated |
Changed in nova: | |
milestone: | none → icehouse-rc1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | icehouse-rc1 → 2014.1 |
Fix proposed to branch: master /review. openstack. org/76724
Review: https:/