Handle errors gracefully with proper status codes, meaningful messages, retry logic, and user-friendly responses.
Errors caused by invalid client requests. Client should fix the request.
400 Bad RequestInvalid data401 UnauthorizedNot authenticated403 ForbiddenNo permission404 Not FoundResource missing422 UnprocessableValidation failed429 Too ManyRate limitedErrors on server side. Server should handle and fix these.
500 Internal ErrorUnexpected error502 Bad GatewayUpstream failed503 UnavailableService down504 TimeoutRequest timeout