HTTP Response Codes
Every server response must contain an appropriate HTTP response status. Specifically:
- Response codes in the 2XX range signify a successfully processed request (e.g., code 200 for data retrieval, code 201 for entity addition, code 204 for deletion).
- Response codes in the 4XX range indicate that a request could not be processed due to client-side data issues (e.g., 404 for addressing a non-existing resource).
- Response codes in the 5XX range indicate an internal server-side error occurred during request processing (e.g., when a database is temporarily unavailable).