)]}'
{"doc/source/api_microversion_dev.rst":[{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"e6fb66946ddcdbf2bce3859d7295fbf0bd20421d","unresolved":false,"context_lines":[{"line_number":157,"context_line":"  previously unspecified error code is the 400 and 403 cases. This is"},{"line_number":158,"context_line":"  considered OK to return even if previously unspecified in the code since"},{"line_number":159,"context_line":"  it\u0027s implied given keystone authentication can fail with a 403 and wsgi"},{"line_number":160,"context_line":"  infrastructure fail with a 400 for invalid json request body."},{"line_number":161,"context_line":""},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"In Code"}],"source_content_type":"text/x-rst","patch_set":1,"id":"da20952f_051e43ba","line":160,"updated":"2015-08-27 14:35:40.000000000","message":"Nit: I slightly prefer s/wsgi infrastructure/API validation/  and s/fail with/can fail with/","commit_id":"b1e1604a79cebcbc06474f744c5f79b32dba5466"},{"author":{"_account_id":8556,"name":"Ghanshyam Maan","display_name":"Ghanshyam Maan","email":"gmaan.os14@gmail.com","username":"ghanshyam"},"change_message_id":"de8044542e0cd5be9bc11712f55480d50f0e74d2","unresolved":false,"context_lines":[{"line_number":157,"context_line":"  previously unspecified error code is the 400 and 403 cases. This is"},{"line_number":158,"context_line":"  considered OK to return even if previously unspecified in the code since"},{"line_number":159,"context_line":"  it\u0027s implied given keystone authentication can fail with a 403 and API"},{"line_number":160,"context_line":"  validation can fail with a 400 for invalid json request body."},{"line_number":161,"context_line":""},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"In Code"}],"source_content_type":"text/x-rst","patch_set":2,"id":"da20952f_49bafb0b","line":160,"updated":"2015-08-28 00:11:52.000000000","message":"But that the case of POST/PUT request with body - https://github.com/openstack/nova/blob/master/nova/api/openstack/wsgi.py#L806\n\nCase of delete and other method which do not expect json body would not return 400 right?","commit_id":"79a9ca6da345db454f61b82dbd761507141fbddf"},{"author":{"_account_id":8556,"name":"Ghanshyam Maan","display_name":"Ghanshyam Maan","email":"gmaan.os14@gmail.com","username":"ghanshyam"},"change_message_id":"d274b00a00ae0e3f8388e7d0c5409e508818a1b6","unresolved":false,"context_lines":[{"line_number":157,"context_line":"  previously unspecified error code is the 400 and 403 cases. This is"},{"line_number":158,"context_line":"  considered OK to return even if previously unspecified in the code since"},{"line_number":159,"context_line":"  it\u0027s implied given keystone authentication can fail with a 403 and API"},{"line_number":160,"context_line":"  validation can fail with a 400 for invalid json request body."},{"line_number":161,"context_line":""},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"In Code"}],"source_content_type":"text/x-rst","patch_set":2,"id":"da20952f_d857b600","line":160,"in_reply_to":"da20952f_49bafb0b","updated":"2015-08-28 01:12:16.000000000","message":"example of delete -\ncurl -g -i -X DELETE http://192.168.11.237:8774/v2/7969094909ec4e40a70a9a27035b370a/servers/ba1e92b9-e5dd-46ee-89eb-9ed4e680768a -H \"User-Agent: python-novaclient\" -H \"Accept: application/json\" -H \"X-Auth-Token: c60e75184e1941519f97aab563ae92c4\" -d \u0027{\"server\": {kkkm}}\u0027\nHTTP/1.1 204 No Content\nContent-Length: 0\nContent-Type: application/json\nX-Compute-Request-Id: req-6cccbea7-e35c-4ef0-b9c0-da591aa97f31\nDate: Fri, 28 Aug 2015 01:11:05 GMT\n\nopenstack@openstack-VirtualBox:~/devstack$","commit_id":"79a9ca6da345db454f61b82dbd761507141fbddf"},{"author":{"_account_id":8556,"name":"Ghanshyam Maan","display_name":"Ghanshyam Maan","email":"gmaan.os14@gmail.com","username":"ghanshyam"},"change_message_id":"e30dc7e019184d991379628f692bf77ecf3b1dfe","unresolved":false,"context_lines":[{"line_number":157,"context_line":"  previously unspecified error code is the 400 and 403 cases. This is"},{"line_number":158,"context_line":"  considered OK to return even if previously unspecified in the code since"},{"line_number":159,"context_line":"  it\u0027s implied given keystone authentication can fail with a 403 and API"},{"line_number":160,"context_line":"  validation can fail with a 400 for invalid json request body."},{"line_number":161,"context_line":""},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"In Code"}],"source_content_type":"text/x-rst","patch_set":2,"id":"da20952f_2e08e890","line":160,"in_reply_to":"da20952f_d857b600","updated":"2015-08-28 02:37:56.000000000","message":"Got it after discussion with Alex. There are more cases where 400 can be returned generically for all APi like invalid version, project id mismatch etc - https://github.com/openstack/nova/blob/master/nova/api/openstack/wsgi.py#L746","commit_id":"79a9ca6da345db454f61b82dbd761507141fbddf"}]}
