service_unavailable
The server is starting or shutting down and can’t take the request.
HTTP 503 · api_error · safe to retry
What happened
Section titled “What happened”The server is starting or shutting down and can’t take the request. A 503 is never stored for idempotent replay.
What to do
Section titled “What to do”Retry in a few seconds with the same Idempotency-Key. Another instance, or this one after it restarts, will take it.
Example
Section titled “Example”{ "error": { "type": "api_error", "code": "service_unavailable", "message": "Deedglass is starting or shutting down. Retry in a few seconds.", "param": null, "request_id": "req_01j9zr3m5k8q2w7x4t6v0b1c9d", "doc_url": "https://docs.deedglass.com/errors/service_unavailable" }}The message is for a person and can get more exact over time: branch on type and code, never on the message.
In the SDKs
Section titled “In the SDKs”| SDK | Raised as |
|---|---|
TypeScript (@deedglass/sdk) |
APIError with code === "service_unavailable" |
Python (deedglass) |
deedglass.APIError with .code == "service_unavailable" |