Sluiceline

Errors

Every status code and error body this gateway and its management API return.

Where an upstream provider produced the error, the body is the provider's own. The errors below are the ones this gateway generates itself.

Gateway

Returned on a platform prefix (/openai/…, /anthropic/…, …). Every body is { "error": "<message>" }.

StatuserrorCause
401missing bearer tokenThe request carried no safe-key
401invalid keyThe safe-key does not exist
403key revokedThe key was revoked
403key pausedThe key is paused
403this route serves <platform> keys, but the key belongs to <platform>The key was sent to another platform's prefix
403pv quota fusedThe key's daily PV quota is exhausted
429uv quota exceededThe key's distinct-visitor allowance is spent
429per-visitor quota exceededOne visitor used up their own calls for the day
502missing upstream keyA safe-key whose stored upstream key cannot be decrypted
502unsupported providerNo gateway adapter for the key's platform

A mock key can additionally return the simulated errors of its platform — see Mock behaviour.

Management API

Under /api/…, authenticated with a session cookie. Bodies are { "error": "<message>" }.

StatusCause
400A malformed body or an invalid field, e.g. name is required, mode must be 'safe' or 'mock'
401Unauthorized — no valid session
402A plan entitlement would be exceeded: the key limit, the PV budget, or an alert address on a plan that has none (FREE)
403Forbidden — an operator-only route without the admin role
404Unknown key, coupon or subscription
409Coupon code already exists
413A mock fixture larger than the 10 MB limit
500A stored secret could not be decrypted