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

# Errors

The error object of the Accounting 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 Accounting

| Status | Code | Meaning |
| --- | --- | --- |
| `404` | `posting_request_not_found` | No posting request with this id exists for your company. |
| `404` | `journal_entry_not_found` | No journal entry with this id exists for your company. |
| `404` | `operation_not_found` | No change was sent with this `operationId`. |
| `404` | `subscription_not_found` | No subscription with this id exists for your company. |
| `404` | `delivery_not_found` | No delivery with this id exists for your company. |
| `409` | `payload_conflict` | A posting request with this `postingRequestId` was already accepted with different content. |
| `409` | `period_closed` | The period of the date is locked, or there is no period for it. Nothing is posted into it. |
| `409` | `policy_conflict` | The `mappingPolicyVersion` of the request is not a policy of your company. |
| `409` | `stale_source` | The document has a newer revision than `sourceRevision`. |
| `409` | `reversal_conflict` | The entry already has a reversal, or it is itself a reversal. |
| `409` | `nothing_parked` | The delivery is not in the `parked` state, so there is nothing to replay. |
| `409` | `endpoint_not_answering` | Your endpoint did not answer the check that precedes a replay. |
| `422` | `invalid_reversal_date` | The reversal is dated before the entry it reverses. |

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