---
updatedAt: 2025-05-27T23:49:57.000Z
agentTools:
  projectIndex: https://developer.corrigo.com/llms.txt
---

# Error Codes

Standard error codes for your exception handler

## HTTP Error Code

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        Code
      </th>

      <th style={{ textAlign: "left" }}>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        200
      </td>

      <td style={{ textAlign: "left" }}>
        All success requests return this status
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        400
      </td>

      <td style={{ textAlign: "left" }}>
        All requests with handled exceptions (CorrigoCoreException from middleware and CustomException from API), requests with empty token or token that has invalid format
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        401
      </td>

      <td style={{ textAlign: "left" }}>
        Requests with missing Authorization header (MISSING\_AUTHORIZATION\_HEADER error code)
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        403
      </td>

      <td style={{ textAlign: "left" }}>
        Requests with missing Bearer in auth token or token validation failure
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        500
      </td>

      <td style={{ textAlign: "left" }}>
        All requests with unhandled exception
      </td>
    </tr>
  </tbody>
</Table>

## Corrigo Error Code

Here is the list of error codes returned from API

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Code
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        ERROR*CODE*\{Number}
      </td>

      <td>
        Error Code template, where \{Number} is ErrorNumber (Corrigo.Core.Resources.ErrorCodes) returned from CorrigoService
      </td>
    </tr>

    <tr>
      <td>
        BUSINESS\_LOGIC\_ERROR
      </td>

      <td>
        Generic error code for errors from CorrigoService with empty ErrorNumber
      </td>
    </tr>

    <tr>
      <td>
        ENTITYSPECIFIER\_NOT\_FOUND
      </td>

      <td>
        'entitySpecifier' field is null or empty\
        The entity specifier is not specified in response of create action
      </td>
    </tr>

    <tr>
      <td>
        COMMAND\_NOT\_FOUND
      </td>

      <td>
        There are no such command or custom command for specified entity
      </td>
    </tr>

    <tr>
      <td>
        DATA\_PARSING\_ERROR
      </td>

      <td>
        Id param couldn't be parsed neither as int nor as CorrigoEntity JSON
      </td>
    </tr>

    <tr>
      <td>
        CUSTOM\_COMMAND\_ERROR
      </td>

      <td>
        There is custom command for an action that should be used
      </td>
    </tr>

    <tr>
      <td>
        ENTITY\_NOT\_FOUND
      </td>

      <td>
        There are no such entityType
      </td>
    </tr>

    <tr>
      <td>
        IDENTIFIER\_NOT\_FOUND
      </td>

      <td>
        ‘inlineId and id’ fields are null or empty
      </td>
    </tr>

    <tr>
      <td>
        EMPTY\_INPUT\_PARAMETER
      </td>

      <td>
        Input parameter is null or empty
      </td>
    </tr>

    <tr>
      <td>
        INCORRECT\_MODEL
      </td>

      <td>
        Incorrect input parameter model
      </td>
    </tr>

    <tr>
      <td>
        MISSING\_AUTHORIZATION\_HEADER
      </td>

      <td>
        Authorization header is missing
      </td>
    </tr>

    <tr>
      <td>
        MISSING\_AUTHORIZATION\_SCHEME
      </td>

      <td>
        Bearer missing
      </td>
    </tr>

    <tr>
      <td>
        DATABASE\_VERSION\_MISMATCH
      </td>

      <td>
        Company name was not specified / Company database isn't accessible / Requests to the instance cannot be processed by this URI
      </td>
    </tr>

    <tr>
      <td>
        INCORRECT\_TOKEN
      </td>

      <td>
        Token validation failure
      </td>
    </tr>

    <tr>
      <td>
        EXPIRED\_TOKEN
      </td>

      <td>
        Token has expired
      </td>
    </tr>
  </tbody>
</Table>