Errors reference
Every non-2xx response from /api/v2/* is application/problem+json
(RFC 7807). Discriminate on type (a stable URL), not on title or detail.
Schema
{
"type": "https://developers.orobo.tech/errors/<slug>",
"title": "<short label>",
"status": <int>,
"detail": "<human-readable, sometimes context-specific>",
"request_id": "<uuid>",
"errors": ["<optional per-attribute messages>"],
"result": {
"messageType": "error",
"text": "<same as detail, falling back to title>",
"code": "<the type slug, e.g. not-found>",
"correlationId": "<same uuid as request_id>"
}
}
errors is only present on 422 validation failures. result carries the
same information as the top-level RFC 7807 fields, named per EN 18222's
result-object convention, for callers that specifically look for that shape.
Status codes
| Status | type slug |
When | Caller fix |
|---|---|---|---|
| 400 | bad-request |
Malformed JSON, missing required body, unsupported grant_type. |
Fix the request shape. |
| 400 | invalid-idempotency-key |
Idempotency-Key outside 16–128 chars or non-printable. |
Send a sane key. |
| 401 | unauthorized |
Missing / expired / revoked bearer token. | Re-mint a token. |
| 401 | invalid-token |
Token signature does not match. | Confirm you're calling the right environment. |
| 403 | forbidden |
Token lacks the required scope, or IP not in allowlist. | Add the scope, or call from an allowlisted IP. |
| 404 | not-found |
Resource doesn't exist or belongs to another organisation. | Check the id; check tenancy. |
| 409 | idempotency-conflict |
Same Idempotency-Key used with a different request body. |
Generate a new key for the new payload. |
| 410 | gone |
Any /api/v1/* request: v1 is switched off. A Link: …; rel="successor-version" header points at these docs. |
Move the call to /api/v2, see v1 vs v2. |
| 415 | unsupported-media-type |
Wrong Content-Type. |
JSON for resource calls; multipart for uploads. |
| 422 | unprocessable-entity |
Validation failure on the request body. | Read errors[] and fix the offending fields. |
| 423 | locked |
Resource is in a state that forbids the action (e.g. publishing an unfinished DPP). | See detail. |
| 429 | too-many-requests |
Rate limit exceeded. | Honour Retry-After. |
| 500 | internal-server-error |
A bug. | Quote request_id to support. |
| 502 | bad-gateway |
Upstream dependency failed (e.g. Drive importer). | Retry; if persistent, contact support. |
| 503 | service-unavailable |
Maintenance window or partial outage. | Honour Retry-After. |
Examples
{ "type": "https://developers.orobo.tech/errors/unauthorized",
"title": "Unauthorized", "status": 401,
"detail": "Missing access token", "request_id": "8f14e45f-..." }
We do not distinguish "exists but you can't see it" from "doesn't exist" —
that would leak the existence of records in other organisations.
422 (validation)
{ "type": "https://developers.orobo.tech/errors/unprocessable-entity",
"title": "Unprocessable Entity", "status": 422,
"detail": "Validation failed",
"errors": ["Url must be an http(s) URL",
"Event types contains unknown event type(s): pizza.delivered"],
"request_id": "8f14e45f-..." }
429
See Rate limits for the full header set.
Quoting request_id
Every problem-detail body carries request_id. Always quote it in support
tickets — it lets us pull the exact audit log row, exception trace, and
upstream call graph in seconds.