日本語のみで絞り込む
2010/7/20 -For input validation failure: 400 Bad Request + your optional description. This is suggested in the book "RESTful Web Services".
2026/9/17 -HTTP response status codes indicate whether a specific HTTP request has been successfully completed. Responses are grouped in five classes:
2025/8/26 -The HTTP spec says 400 is for requests the server can't process, which perfectly covers validation failures. I only use 422 when the JSON ...
HTTP status codes · 200: "OK" · 201: "Success" · 204: "Success" · 301: "Login required" · 304: "Not Modified" · 400: "There was a parsing error." · 400: "Bad Request" ...
All validation errors correspond with a 403 HTTP status code. A validation error occurs when: Request body is ill-formed e.g. invalid JSON; Required parameters ...
2025/11/3 -Database connection failures should return 503 Service Unavailable. Validation errors should return 400 Bad Request with field-level details.
2014/10/31 -Use 400 if the query is syntactically incorrect. Use 422 if the query is semantically incorrect. I'll show you a clean example :
If the client receives an error code such as 403 (Forbidden) or 405 (Method Not Allowed) then it should not send the request's body. The response 417 ...
2025/7/30 -400 Bad Request · Indicates that the server cannot process the request due to malformed syntax or invalid input. · Common causes may include ...
2016/9/8 -For malformed token should API return instead a generic 400 (“Bad Request”) and for 401 (“Unauthorized”) for token which is not unauthorized.