- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for StatusTooManyRequests (0.09 sec)
-
cmd/api-response.go
// writeErrorResponse writes error headers func writeErrorResponse(ctx context.Context, w http.ResponseWriter, err APIError, reqURL *url.URL) { switch err.HTTPStatusCode { case http.StatusServiceUnavailable, http.StatusTooManyRequests: // Set retry-after header to indicate user-agents to retry request after 60 seconds. // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After w.Header().Set(xhttp.RetryAfter, "60") }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 31 19:27:06 UTC 2024 - 33.4K bytes - Viewed (0)