---
type: Web Page
title: "Errors"
description: "The error shape and codes."
resource: "https://racksort.com/docs/errors"
---

# Errors

Errors share one shape: `{"error": {"type", "code", "message", "param"}}`. A decided request is never an error, whatever its verdict.

| Status | Codes | Meaning |
| --- | --- | --- |
| 400 | `invalid_json` | The body is not a JSON object. |
| 401 | `missing_api_key`, `invalid_api_key` | No key, or a revoked or expired one. |
| 413 | `body_too_large` | The body exceeds the limit. |
| 415 | `unsupported_media_type` | Send `Content-Type: application/json`. |
| 422 | `schema_violation`, `unknown_decision` | The request does not match its decision's schema; `param` names the field. |
| 422 | `duplicate_id` | A list repeats an identifier that must be unique, such as a carrier request key or a carton id; `param` names the repeat. |
| 422 | `too_many_questions` | The request needs more model questions than one request may ask. Split the evidence across requests. |
| 409 | `subscription_exists`, `no_billing_account`, `same_plan`, `plan_change_unavailable` | Upgrade only from Developer; switch or manage billing only on a paid plan that is paid up, and downgrade once usage fits the smaller plan. |
| 429 | `rate_limited`, `daily_decision_quota`, `daily_question_quota`, `period_cap_reached`, `spend_limit_reached` | Wait for `Retry-After`, or raise the spend limit on the account page. |
| 503 | `service_unavailable`, `overloaded`, `billing_unavailable` | Retry shortly. [/status](https://racksort.com/status) shows whether the API is up. |
