Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Errors

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

    FieldMeaning
    codeA stable code for the cause. Act on this.
    messageA 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.
    fieldsOn a 400, each field that is wrong and why. Absent otherwise.
    requestIdThe 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

    StatusCodeMeaningRetry
    400invalid_requestThe 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.
    401unauthorizedThe token is missing, expired or not ours.After you get a new token.
    403forbiddenThe token does not give access to this company or operation.No.
    404<thing>_not_foundThe record does not exist for this company.No.
    409revision_conflictexpectedRevision is older than the record.Read the record again, then send a new operation.
    409operation_reusedThis operationId was sent before with another body.No.
    422A code of the product, such as blocked_by_checksThe request is well formed and a rule of the product refuses it.No. The code says what to change.
    429rate_limitedToo many requests. Retry-After gives the seconds.Yes, after the pause.
    503unavailableThe service cannot answer now.Yes, with the same operationId.

    Codes of REGES Gateway

    StatusCodeMeaning
    404employer_not_foundThe employer does not exist in your account.
    404contract_not_foundThe contract does not exist in your account.
    404register_operation_not_foundThe register operation does not exist in your account.
    404permission_not_foundThe access permission does not exist in your account.
    404subscription_not_foundThe subscription does not exist in your account.
    404delivery_not_foundThe delivery does not exist in your account.
    404operation_not_foundNo change was sent with this operationId.
    404client_not_foundThe API client does not exist in your account.
    409invalid_statusThe operation is not in a status that allows this.
    409not_permittedThe designated person does not hold the access permission this step needs for the employer, or it has ended. Nothing was changed.
    409same_personThe person who prepared the operation cannot approve it.
    409reason_requiredA reason is required: the deadline has passed, or the outcome of a transmission is being flagged as unknown.
    409answer_incompleteThe answer is incomplete: registered needs a reference, rejected needs a message.
    409already_correctedA correction of this operation already exists.
    409already_openAn operation of this kind is already being prepared for the contract.
    409already_permittedThis holder already has an access permission of this kind for the employer.
    409already_revokedThe access permission or the client was already revoked.
    409already_extendedThe access permission already runs to the end date an extension gives.
    409endpoint_answeringThe event endpoint already answers.
    409endpoint_not_answeringThe event endpoint still does not answer. The event stays parked.
    409nothing_to_retryThe delivery is not waiting for a retry.
    409nothing_parkedThe delivery is not parked.
    409employer_existsAn employer with this CUI is already in your account.
    422blocked_by_checksA blocking check still fails. Nothing was validated and the operation stays a draft.
    422invalid_valueA 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