ЕСОЗ - публічна документація

Error types



UNAUTHENTICATED [401]

The request was a legal request, but the server is refusing to respond to it

Error rendering macro 'code': Invalid value specified for parameter 'firstline'
" {
  "meta": {
    "url": "http://api.dev.asclepius.com.ua:8000/graphql",
    "code": 401,
    "request_id": "f123ac74-d571-45e4-b5aa-a9461e5f52b5#774",
    "type": "object"
  },
  "error": {
    "message": "Invalid access token",
    "type": "access_denied"
  }
}


FORBIDDEN [403]

The server understood the request, but is refusing to fulfill it.


CONFLICT [409]

The request could not be completed due to a conflict with the current state of the resource.


NOT_FOUND [404]

The server has not found anything matching the Request-URI. 
This error shouldn't be used for mutation. In case not existing ID was used for mutation return 200 null response.


UNPROCESSABLE_ENTITY [422]

The 422 (Unprocessable Entity) status code means the server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions.

Error rendering macro 'code': Invalid value specified for parameter 'firstline'
  "errors": [
    {
      "errors": [
        {
          "description": "Start date must be greater than current date",
          "params": [],
          "rule": "invalid"
        }
      ],
      "extensions": {
        "code": "UNPROCESSABLE_ENTITY"
      },
      "locations": [
        {
          "column": 0,
          "line": 2
        }
      ],
      "message": "Validation error",
      "path": [
        "updateContractRequest"
      ]
    }
  ]

BAD_REQUEST [400]

The request could not be understood by the server due to malformed syntax.


INTERNAL_SYSTEM_ERROR [500]

The server encountered an unexpected condition which prevented it from fulfilling the request.


ЕСОЗ - публічна документація