Skip to Content
upserve

Error responses

Interpret HTTP statuses and decide when an update client should retry.

An Upserve operational error returns a small JSON object, for example:

{ "error": "network" }

Raw GitHub responses and credentials aren't sent to clients. Not every HTTP error has this JSON shape: unmatched routes and some missing assets use Hono's normal 404 response.

Status codes

StatusMeaningWhat to do
202 AcceptedA webhook event was accepted; its refresh was coalesced, scheduled or deferredNothing; Upserve refreshes the release list itself
204 No ContentNo release or applicable update for this requestKeep the installed version; don't parse a JSON body
304 Not ModifiedYour metadata ETag still matches, or a download validator matchedReuse your client-side cached response
401 UnauthorizedApplication access denied, or webhook verification failedSupply the correct downstream credentials or signature
404 Not FoundUnknown route/channel, missing release, manifest or assetCheck the exact URL and selected release's assets
422 Unprocessable EntityInvalid version or upstream metadataCorrect the version or release files; repeated immediate retries won't fix it
503 Service UnavailableUpstream failure, denied upstream access or refresh cooldown with no usable cached dataRespect Retry-After and investigate the error code
500 Internal Server ErrorAn unexpected error, including a plugin/storage exceptionInspect your server integration without logging secrets

Operational error codes

JSON errorDefault HTTP statusMeaning
missing404A required resource isn't available
invalid422Metadata or version validation failed
auth503The upstream rejected access; this isn't a downstream client login failure
network503An upstream request or manifest load failed
rate_limit503The upstream rate-limited refresh, or a cooldown from an earlier version
configuration503 if raised during a requestInvalid configuration; normally discovered at startup
internal500An error outside the recognized operational categories

Requests during a failure cooldown report the original code and status. For example, a manifest that fails validation returns 422 invalid both for the first request and for later requests before the cooldown ends, and Upserve doesn't contact the upstream again. Cooldown responses can include Retry-After. Cooldown entries written by earlier versions don't record a code and report rate_limit until they expire.

Retry behavior

When an error carries a retry deadline, Upserve includes Retry-After as a number of seconds. Clients should wait at least that long and add their own jitter when many installations retry together. Don't add a force-refresh query or repeatedly invalidate metadata from clients.

A temporary failure can be hidden by a successful stale-data response until the configured stale window ends. A successful empty release list is different: it means there are no releases to offer. See cache behavior and symptom-based troubleshooting.

On this page