---
title: "Errors | Docs | CRM by R&D Copilot"
description: "The error object of the CRM API and the codes that say what went wrong."
canonical: "https://crm.rdcopilot.com/docs/reference/errors/"
language: en
updated: 2026-11-22
---

# Errors

The error object of the CRM API and the codes that say what went wrong.

An error is an HTTP status and a JSON object whose `code` never changes its meaning.

## The error object

| Field | Meaning |
| --- | --- |
| `code` | A stable code for the cause. Act on this. |
| `message` | A sentence to read in your logs. It can change, so do not show it to the people who use your software and do not match on it. |
| `fields` | On a 400, each field that is wrong and why. Absent otherwise. |
| `requestId` | The identifier of this request. Quote it when you ask us for help. |

Every answer, an error or not, carries the header `X-RDC-Request-Id` with the same value as `requestId`.

## Codes every product shares

| Status | Code | Meaning | Retry |
| --- | --- | --- | --- |
| `400` | `invalid_request` | The request cannot be read or breaks the contract: malformed JSON, a missing or unknown field, a wrong type. `fields` names each one. | No. Fix the request. |
| `401` | `unauthorized` | The token is missing, expired or not ours. | After you get a new token. |
| `403` | `forbidden` | The token does not give access to this company or operation. | No. |
| `404` | `<thing>_not_found` | The record does not exist for this company. | No. |
| `409` | `revision_conflict` | `expectedRevision` is older than the record. | Read the record again, then send a new operation. |
| `409` | `operation_reused` | This `operationId` was sent before with another body. | No. |
| `422` | A code of the product, such as `blocked_by_checks` | The request is well formed and a rule of the product refuses it. | No. The code says what to change. |
| `429` | `rate_limited` | Too many requests. `Retry-After` gives the seconds. | Yes, after the pause. |
| `503` | `unavailable` | The service cannot answer now. | Yes, with the same `operationId`. |

## Codes of CRM

| Status | Code | Meaning |
| --- | --- | --- |
| `404` | `deal_not_found` | The deal does not exist, or it was merged into another one. |
| `404` | `company_not_found` | The company does not exist. |
| `404` | `owner_not_found` | The owner is not a person of your account. |
| `404` | `task_not_found` | The task does not exist on this deal. |
| `404` | `person_not_found` | The person does not exist. |
| `404` | `activity_not_found` | The activity does not exist. |
| `404` | `pipeline_not_found` | The pipeline does not exist. |
| `404` | `operation_not_found` | No change was recorded under this `operationId`. |
| `404` | `event_not_found` | The event does not exist, or it has not been delivered to a subscription yet. |
| `404` | `subscription_not_found` | The subscription does not exist. |
| `409` | `external_id_taken` | Another record of the same kind already has this `externalId`. |
| `409` | `offer_required` | The deal has not reached `offer`, so it cannot be won. |
| `409` | `deal_closed` | The deal is won or lost. Only reopening it, or creating its order, is accepted. |
| `409` | `deal_not_closed` | The deal is open, so there is nothing to reopen. |
| `409` | `order_exists` | The deal has an order in ERP, so it cannot be reopened. |
| `409` | `deal_not_won` | Only a won deal can have an order in ERP. |
| `409` | `order_already_created` | The deal already has its order. A second one is not created. |
| `409` | `task_already_done` | The task is already done. |
| `409` | `other_company` | The records belong to different companies. |
| `409` | `not_a_lead` | Only a deal in `lead` can be merged. |
| `422` | `not_a_move` | The deal is already in this stage. |
| `422` | `reason_not_valid` | The `reason` is not one of the values of the operation. |
| `422` | `name_required` | The name is empty, or longer than 280 characters. |
| `422` | `text_required` | The text is empty, or longer than 280 characters. |
| `422` | `kind_not_valid` | The `kind` is not one of the values of the operation. |
| `422` | `date_not_valid` | The date is not a real day, or it is earlier than today. |
| `422` | `value_not_valid` | The value is not a decimal string greater than zero. |
| `422` | `minutes_not_valid` | The length of a call is not a whole number from 1 to 480. |
| `422` | `same_deal` | The duplicate is the deal itself. |
| `422` | `custom_field_unknown` | A key in `customFields` is not a custom field of this kind of record. |
| `422` | `custom_field_invalid` | A value in `customFields` does not fit the type of its field. |

The full rule: [Developer guide](https://rdcopilot.com/docs/errors/)
