Custom HTTP Response Codes
Posted: May 3rd, 2024, 2:34 pm
REST APIs should be able to return an HTTP status code besides 200. This is needed for integrating with other systems that will consume the API. Most would expect a 200 response to mean the call was successful. In the case of an error, the system should be able to set a different response status code to indicate the failure type.