Skip to content
VPS, Dedicated Servers and Colocation across ServerBike service locations

Developer reference

Errors and retries

What to do after each kind of answer, timeout or edge error.

Public API 1.1.1
Documentation menu
Official API documentation · version 1.1.1View raw RETRY_AND_ERRORS.md

Retries, timeouts and edge errors

Two identities matter:

  • the nonce makes one HTTP attempt unique (never reused; every attempt is re-signed);
  • the operation_uuid makes one business intent unique (reused for retries of the same intent, never for another).

Decision table

What you receivedReads (GET)Business POST (purchase, renewal, lifecycle, plan change)Runtime POST (power, reinstall, password)
200Done.Done (or pending — keep polling).Poll the operation route.
400, 404, 409, 422Fix the request.Definite answer. 422 = nothing charged.Definite answer.
401Check clock, signing, source address.Same; the request was not executed.Same.
429 (JSON)Wait Retry-After, re-sign, retry.Same intent, same operation_uuid, re-signed.Same.
503 UPSTREAM_UNAVAILABLERetry later.Proven not sent: same intent, same operation_uuid, later.Retry later with the same operation_uuid.
503 OUTCOME_UNKNOWN—May have committed. Poll GET /operations/{operation_uuid} after Retry-After.—
500Retry later.Ambiguous. Poll the lookup.Ambiguous. Poll the operation route.
Timeout, connection reset, TLS error after sendingRetry.Ambiguous. Poll the lookup; never a new UUID.Ambiguous. Poll the operation route.
Not the JSON envelope: HTML, a CDN/proxy error (502, 503, 504, 520–527), a challenge page (cf-mitigated: challenge), a redirectRetry with backoff.Ambiguous — a proxy error after a POST does not prove the request never arrived. Poll the lookup.Ambiguous. Poll the operation route.
Lookup not_found right after an ambiguous POST—Not yet proof of absence. Keep polling with backoff for a few minutes; if it stays not_found, resend the same body with the same operation_uuid (safe: the platform admits an intent once).Operation route 404 after an ambiguous POST: resend the same body with the same operation_uuid.

Never respond to an error by sending the same intent under a new operation_uuid until the original is proven terminal (rejected, failed_*). That is how a purchase is charged twice.

Edge (CDN) behaviour

The API hostname may be served through a CDN. Requests are passed through unchanged (method, raw target, headers, body); responses are never cached. Use the canonical paths exactly as documented: do not add duplicate slashes, dot segments, a trailing ?, or alternative percent-encodings. Send Accept-Encoding: identity.

A CDN may answer by itself (not the API): connection errors to the origin (52x), rate limits, or a challenge page. Those answers have no X-Request-Id and are not the API's JSON envelope. Treat them as transport failures (table above). If you see challenge pages for signed API traffic, contact ServerBike support with the cf-ray value.

Timeouts

Use at least 60 seconds for runtime POSTs: a Start waits for the provider's answer and can take up to about 45 seconds. If your timeout fires first, the action may still complete: look up the original operation_uuid (observed in acceptance 2026-11-24: a Start answered after 20 s and was found complete by its lookup). Reads normally answer in under 2 seconds.

Polling cadence

Start at 3 seconds, double up to 30 seconds. Stop polling a runtime operation when it is terminal; stop polling a business lookup at committed or rejected. Respect Retry-After.