REST API error responses are not consistent
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Undecided
|
Luis A. Garcia |
Bug Description
There was a recent change (commit c5ab336) to implement returning consistent errors in JSON or XML with a pre-defined schema so that those error responses can be parsed programmatically, however some errors are still coming back in plain text (not JSON or XML), regardless of the Accept header used.
For example:
Doing a GET /stacks/
Will yield a nice JSON response
{
"explanation
"code":404,
"error":{
"
"
"
},
"title":"Not Found"
}
But doing a POST /stacks
Body: {}
Will yield the following plain text response:
400 Bad Request
No stack name specified
Changed in heat: | |
assignee: | nobody → Luis A. Garcia (luisg-8) |
description: | updated |
Changed in heat: | |
milestone: | none → havana-3 |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | havana-3 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/40503
Review: https:/