504504 Gateway Timeout
A gateway or proxy server did not receive a timely response from the upstream server.
429The user has sent too many requests in a given amount of time (rate limiting).
Your application exceeded the API's rate limit. This protects the server from being overwhelmed. The Retry-After header indicates how long to wait before making another request.
Implement exponential backoff and respect the Retry-After header. Reduce request frequency, batch requests where possible, or cache responses. Consider upgrading your API plan for higher limits.
// Implement exponential backoff
await new Promise(r => setTimeout(r, retryAfter * 1000));504A gateway or proxy server did not receive a timely response from the upstream server.
207The response provides status for multiple independent operations in a single response (WebDAV).
101The server is switching protocols as requested by the client via an Upgrade header.
205The server tells the client to reset the document view, such as clearing a form after submission.
403The server understood the request but refuses to authorize it. Unlike 401, re-authenticating will not help.
401The request requires user authentication. The client must provide valid credentials to access the resource.