Skip to main content

Error shape

An error response has the content type application/problem+json. Its body is RFC 9457 problem details, with one extra field, code:
Read code in your client. It does not change. The text of title and detail can change. In errors, code is the reason that the field failed, such as invalid_type, too_big, invalid_value or unrecognized_keys. The field is request when the problem is with the whole request, such as a query parameter that the endpoint does not take.

Error codes

invalid_request

A parameter is missing, has the wrong type or is not allowed. This includes a filter or a cursor that the API cannot read, and a query parameter that the endpoint does not take. Fix the request. detail or errors tells you what to change.

unauthorized

The request has no Authorization: Bearer <key> header, or the key is not valid or was revoked. Check the key, or create a new one.

forbidden

Your workspace cannot use this feature or plan. Contact your Solidroad admin.

insufficient_scope

The key does not have the scope that this endpoint needs. detail names the scope, such as assignments:read. Use a key that has it.

api_key_blocked

Solidroad has blocked this key. Retrying will not help, and neither will a change to the request. Contact support.

not_found

The path is not a version 2 endpoint, or no record with this ID is visible to your key. The response is the same when an ID has the wrong prefix, belongs to another workspace or does not exist.

method_not_allowed

Version 2 only reads, so it refuses anything but GET, HEAD or OPTIONS on every path. The Allow header lists what it takes.

conflict

The record changed while the request ran. Send the request again.

rate_limited

You sent too many requests. Wait for the number of seconds in the Retry-After header, then send the request again. Read Rate limits.

internal_error

An error occurred on our side. Retry with backoff. If the error continues, contact support and give the instance value.

unavailable

A service that we depend on is not available. Retry with backoff. The response has a Retry-After header when we know how long the outage will be.