API Testing - HTTP Status Codes
400 Series Errors (Client Side)
These errors occur due to issues in the client request.
400 Bad Request
Invalid syntax or missing parameters.
401 Unauthorized
Authentication required or failed.
403 Forbidden
Permission denied.
404 Not Found
Resource not found.
500 Series Errors (Server Side)
These errors occur when the server fails to process a valid request.
500 Internal Server Error
Generic server failure. Causes: crash, DB issues. Testing: validate request, log, report.
502 Bad Gateway
Invalid response from another server. Causes: microservice failure.
503 Service Unavailable
Server temporarily down due to maintenance or overload.
504 Gateway Timeout
Server took too long to respond. Causes: slow backend.
Key Difference
4xx → Client Issue | 5xx → Server Issue