When a malformed request is sent, the service responds with a 404 error.
For example, the below code produces a 404 Not Found which is, confusingly, the same status code as if the request was directed to a nonexistent endpoint (e.g. http://localhost:8088/oopsy)
The message body is more appropriate to a different message. Maybe "400 Bad Request", "422 Unprocessable Content", or even "500 Internal Server Error".
When a malformed request is sent, the service responds with a 404 error.
For example, the below code produces a 404 Not Found which is, confusingly, the same status code as if the request was directed to a nonexistent endpoint (e.g.
http://localhost:8088/oopsy
)The message body is more appropriate to a different message. Maybe "400 Bad Request", "422 Unprocessable Content", or even "500 Internal Server Error".