)]}'
{"guidelines/http.rst":[{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"df166089a5faae067b2a5423392b9e98ecb5a58e","unresolved":false,"context_lines":[{"line_number":155,"context_line":"    server environment must change."},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"* If a request contains a reference to a nonexistent resource in the body"},{"line_number":158,"context_line":"  (not url), the code should be **404 Not Found**. Do **not** use **400"},{"line_number":159,"context_line":"  Bad Request** even if :rfc:`2616` mentions **The server has not found"},{"line_number":160,"context_line":"  anything matching the Request-URI** for 404. (For example, the specified"},{"line_number":161,"context_line":"  flavor doesn\u0027t exist when creating a virtual machine, the code should be 404)"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a29b11f_7ae12a29","line":158,"updated":"2015-10-22 22:26:00.000000000","message":"requiring to process a 404 on a POST seems just weird to me.\nalso, in case the target resource reference multiple resources, a client would still have to parse the error message to understand which one did not exist, and resubmit the request if possible.","commit_id":"d824e7900a1e0f43deb529633b340e6a51489980"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"7ae3174a38461334d77f5691235f6f92e66c6331","unresolved":false,"context_lines":[{"line_number":158,"context_line":"  (not url), the code should be **404 Not Found**. Do **not** use **400"},{"line_number":159,"context_line":"  Bad Request** even if :rfc:`2616` mentions **The server has not found"},{"line_number":160,"context_line":"  anything matching the Request-URI** for 404. (For example, the specified"},{"line_number":161,"context_line":"  flavor doesn\u0027t exist when creating a virtual machine, the code should be 404)"},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"* If a request is made to a known resource URI, but the HTTP method used for"},{"line_number":164,"context_line":"  the request is not supported for that resource, the return code should be"}],"source_content_type":"text/x-rst","patch_set":1,"id":"7a2fa921_e9059610","line":161,"updated":"2015-10-09 09:32:00.000000000","message":"I prefer this rather than https://review.openstack.org/#/c/221163/\n\nAnother alternative to 404 for this situation would be 422 [1], but to be honest 404 looks clear for me and more intuitive.\n\n[1] http://greenbytes.de/tech/webdav/rfc4918.html#STATUS_422","commit_id":"d824e7900a1e0f43deb529633b340e6a51489980"}]}
