Detailed Explanation
Status codes fall into 5 categories: 1xx (Informational), 2xx (Success), 3xx (Redirection), 4xx (Client Error), and 5xx (Server Error). Standard OpenAPI specs should explicitly document status codes expected per operation.
Common Mistakes to Avoid
- Returning 200 OK for business errors
- Using 500 Internal Server Error for validation failures
