Errors
The error object of the e‑Transport Gateway API and the codes that say what went wrong.
On this page
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 e‑Transport Gateway
| Status | Code | Meaning |
|---|---|---|
404 | company_not_found | The company does not exist in your account. |
404 | declaration_not_found | The declaration does not exist in your account. |
404 | notification_not_found | The message does not exist in your account. |
404 | uit_not_found | The authority’s list for the company does not hold this UIT code. |
404 | driver_sheet_not_found | The declaration has no driver sheet: it has no UIT code yet, it was deleted, or its validity ended. |
404 | operation_not_found | No change was sent with this operationId. |
404 | delivery_not_found | The delivery does not exist in your account. |
404 | subscription_not_found | The subscription does not exist in your account. |
409 | invalid_status | The declaration is not in a status that allows this. |
409 | authorisation_not_in_force | The company’s access to the authority is not in force. Nothing was sent. |
409 | notification_pending | A message about this declaration is still waiting for the authority’s answer. One message at a time. |
409 | nothing_pending | No message about this declaration is waiting for the authority. |
409 | already_departed | The vehicle already left. The gateway refuses a correction and a deletion from then on. |
409 | not_departed | The vehicle did not leave yet. A vehicle change and a confirmation come after departure. |
409 | uit_expired | The validity of the UIT code ended. The gateway refuses a correction, a vehicle change and a confirmation; a deletion is still accepted. |
409 | uit_not_started | The UIT code is valid from the declared start date; that day has not come. |
409 | same_vehicle | The vehicle and the trailers are the ones already declared. |
409 | already_reopened | A new draft was already written from this rejected declaration. |
409 | in_sync | The gateway’s record already matches the authority’s. |
409 | still_listed | The authority still lists the UIT code, so the declaration cannot be closed as missing. |
409 | nothing_parked | The delivery is not parked. |
409 | endpoint_not_answering | The event endpoint still does not answer. The event stays parked. |
422 | validation_failed | The request is well formed but a value is outside what the field accepts. |
422 | operation_type_unknown | That is not an operation type of RO e‑Transport. |
422 | blocked_by_checks | A blocking check still fails. Nothing was sent. |
422 | invalid_vehicle | A plate is not valid: 2 to 20 capital letters and digits, at most two trailers. |
422 | note_required | A partial confirmation or a refusal needs a note that says what happened. |
422 | note_too_long | The note is longer than 200 characters. |
The full rule: Developer guide