DKBSignDocs

Get started

Errors

The gateway returns a small JSON envelope for errors it generates. Upstream errors are forwarded as-is.

Gateway envelope

Errors produced by the gateway always look like this:

json
{
  "status": "error",
  "message": "Invalid authentication token"
}

Status codes

StatusWhenTypical message
400Invalid or missing fields (usually upstream)Validation details from the service
401Missing or invalid Bearer tokenInvalid authentication token
403Authenticated, but not a company admin/userAPI gateway is restricted to company admin and user roles
404Unknown path — the gateway does not invent extra routesLaravel not-found JSON
502Upstream is unreachableUpstream API is unreachable
503Service disabled or URL not configuredUpstream API is disabled

Upstream errors

Successful responses and most 4xx validation errors come straight from the target service: same status, same body, including binary downloads. The gateway does not rewrite those payloads.

Build clients that read status + message when present, and fall back to the raw JSON body for upstream-specific fields.