Skip to main content
The scaling.cloud API uses conventional HTTP status codes and returns a consistent JSON error body on every failure. Check the type field to understand the category of error, and the code field for the specific reason.

Error response shape

All error responses follow this structure:
statusCode
number
required
The HTTP status code for this response (e.g. 400, 401, 404, 422, 500).
type
string
required
The broad category of error. See the error types table below.
code
string
required
A machine-readable code that identifies the specific error within its type. See the error codes table below.
requestId
string
required
A UUID that uniquely identifies this request. Include this value when contacting scaling.cloud support.
Every response — including error responses — includes a requestId. If you open a support ticket, include the requestId from the failing response so the scaling.cloud team can locate the relevant logs.

Error types

Error codes

HTTP status codes

Common error examples

401 — Missing or invalid API key

Returned when the Authorization header is absent or the key cannot be verified.
See Authentication for how to correctly include your API key.

404 — Resource not found

Returned when you reference an ID that does not exist or does not belong to your organization.

422 — Validation error

Returned when the request body fails schema validation — for example, a missing required field or a value of the wrong type. The code field may be empty for validation errors; the type of validation_error is the primary signal.