Skip to content

Errors

Every error reply from an operation under /v1 is a problem: application/problem+json, as RFC 9457 defines it. There a failure is always a 4xx or 5xx status; a 200 never carries an error. Two groups of paths differ: see Exceptions.

HTTP/1.1 404 Not Found
Content-Type: application/problem+json; charset=utf-8
traceparent: 00-0521cd76fe17476a8cfa58304905e6c9-310dc70d19094642-00
{
"error": "not-found",
"category": "not-found",
"type": "https://docs.voidfs.com/errors/#not-found",
"status": 404,
"title": "Not found",
"instance": "urn:uuid:0521cd76-fe17-476a-8cfa-58304905e6c9"
}
Member Meaning
error The stable error code. Branch on this.
category One of seven groups, for a client that handles kinds of error and not each code: invalid-input, unauthorized, forbidden, not-found, conflict, rate-limited, unavailable.
type A URI for the error code: this page’s address with the code as its fragment, so it opens the code’s row in the table below.
status The HTTP status of the reply.
title A short name for the error code, for people. It is the same for every reply with that code.
detail Sometimes present: what was wrong with this request, such as Unexpected query parameter "page". For people; do not parse it.
instance The request ID, as a UUID URN.

A reply to HEAD has no content, so it carries the status and the headers only.

  • 401 sends WWW-Authenticate with the scheme of each credential the operation accepts: Session, Signature, Bearer. With Signature it also sends Accept-Signature, which names the components to sign. See Authentication.
  • 405 sends Allow with the methods the path accepts.
  • 429 can send Retry-After, in seconds.

A client that is too old gets 400 with the error code client-outdated, not 426.

The service gives every request one ID, a UUID, and a problem’s instance is that ID: urn:uuid:0521cd76-fe17-476a-8cfa-58304905e6c9. Quote it when you report a problem.

The service also accepts the W3C Trace Context header traceparent and returns one on every reply under /v1, on errors too:

  • If the request sent a valid traceparent, the reply keeps its trace ID and its sampled flag, with a new span ID.
  • If it sent none, the trace ID is the request ID without its hyphens, as in the example above.

The request ID in instance is the service’s own. It is not the nonce of a signed request, which the app chooses.

/auth. Better Auth writes the replies under /auth, so an error from the library has its JSON shape, {"code": "…", "message": "…"}. What the service itself refuses there, such as a wrong origin or an unknown path, is a problem. The reference shows both for each /auth operation.

The paths not yet under /v1. /native/account, /v3/control and /v3/transfer keep their earlier replies until they move: a failure there can be a JSON object with only error and category, or an outcome inside a 200 reply.

errortitlestatuscategory
invalidInvalid request400invalid-input
client-outdatedClient update required400invalid-input
conflicting-credentialsConflicting credentials400invalid-input
connected-app-unavailableConnected-app credential unavailable401unauthorized
unsupported-media-typeUnsupported media type415invalid-input
payload-too-largePayload too large413invalid-input
sessionSign-in required401unauthorized
unauthorizedCredentials required401unauthorized
forbiddenNot allowed403forbidden
originOrigin not allowed403forbidden
not-foundNot found404not-found
unknown-accountUnknown account404not-found
method-not-allowedMethod not allowed405invalid-input
precondition-failedPrecondition failed412conflict
range-not-satisfiableRange not satisfiable416invalid-input
rate-limitRate limit exceeded429rate-limited
setupAccount setup required403forbidden
unlockPasskey proof refused403forbidden
account-existsAccount already exists409conflict
erasingPrevious account is being erased503unavailable
billingBilling unavailable503unavailable
subscriptionsSubscriptions unavailable for this account403forbidden
subscribedAccount already subscribed409conflict
offer-changedOffer changed409conflict
no-subscriptionAccount has no subscription409conflict
pausedSign-ups paused503unavailable
unavailableUnavailable500 or 503unavailable

An operation’s page in the reference lists the codes it can answer, with an example of each.