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

# Errors

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

| Status | Code | Meaning |
| --- | --- | --- |
| `404` | `employer_not_found` | The employer does not exist in your account. |
| `404` | `contract_not_found` | The contract does not exist in your account. |
| `404` | `register_operation_not_found` | The register operation does not exist in your account. |
| `404` | `permission_not_found` | The access permission does not exist in your account. |
| `404` | `subscription_not_found` | The subscription does not exist in your account. |
| `404` | `delivery_not_found` | The delivery does not exist in your account. |
| `404` | `operation_not_found` | No change was sent with this `operationId`. |
| `404` | `client_not_found` | The API client does not exist in your account. |
| `409` | `invalid_status` | The operation is not in a status that allows this. |
| `409` | `not_permitted` | The designated person does not hold the access permission this step needs for the employer, or it has ended. Nothing was changed. |
| `409` | `same_person` | The person who prepared the operation cannot approve it. |
| `409` | `reason_required` | A reason is required: the deadline has passed, or the outcome of a transmission is being flagged as unknown. |
| `409` | `answer_incomplete` | The answer is incomplete: `registered` needs a `reference`, `rejected` needs a `message`. |
| `409` | `already_corrected` | A correction of this operation already exists. |
| `409` | `already_open` | An operation of this kind is already being prepared for the contract. |
| `409` | `already_permitted` | This holder already has an access permission of this kind for the employer. |
| `409` | `already_revoked` | The access permission or the client was already revoked. |
| `409` | `already_extended` | The access permission already runs to the end date an extension gives. |
| `409` | `endpoint_answering` | The event endpoint already answers. |
| `409` | `endpoint_not_answering` | The event endpoint still does not answer. The event stays parked. |
| `409` | `nothing_to_retry` | The delivery is not waiting for a retry. |
| `409` | `nothing_parked` | The delivery is not parked. |
| `409` | `employer_exists` | An employer with this CUI is already in your account. |
| `422` | `blocked_by_checks` | A blocking check still fails. Nothing was validated and the operation stays a draft. |
| `422` | `invalid_value` | A value has the right type but the rules do not accept it: a date that does not exist, an amount that is not positive, an unknown kind of change for the contract. |

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