> ## Documentation Index
> Fetch the complete documentation index at: https://docs.clinia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Error Codes and Types

> Common error codes and types returned by Clinia's API.

| Error Code | Meaning                                                                                                                                           |
| :--------- | :------------------------------------------------------------------------------------------------------------------------------------------------ |
| `400`      | Indicates that the server cannot process the request due to a malformed request.                                                                  |
| `401`      | Indicates that the request has not been completed due to its lack of valid authentication credentials for the requested resource.                 |
| `403`      | Indicates that the server understands the request but the provided credentials do not have sufficient authorizations on the given resource.       |
| `404`      | Indicates that the requested resource does not exist.                                                                                             |
| `409`      | Indicates a request conflict with the current state of the target resource. This can happen when trying to create a resource that already exists. |
| `500`      | Indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.                                      |
| `501`      | Indicates that the server does not support the functionality required to fulfill the request.                                                     |

| Error Type            | Meaning                                                                                                                                                                                                                     |
| :-------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ALREADY_EXISTS`      | The resource with the provided ID already exists in the system.                                                                                                                                                             |
| `FAILED_PRECONDITION` | The operation was rejected because the system is not in a state required for the operation's execution.                                                                                                                     |
| `INTERNAL`            | Internal error.                                                                                                                                                                                                             |
| `INVALID_ARGUMENT`    | The caller specified an invalid argument. Note that this differs from FAILED\_PRECONDITION. INVALID\_ARGUMENT indicates arguments that are problematic regardless of the state of the system (e.g., a malformed file name). |
| `NOT_FOUND`           | The given ID does not correlate to an existing resource in the system.                                                                                                                                                      |
| `OUT_OF_RANGE`        | The operation was attempted past the valid range.                                                                                                                                                                           |
| `UNIMPLEMENTED`       | The operation is not implemented or is not supported/configured in this service.                                                                                                                                            |
| `PERMISSION_DENIED`   | The caller does not have permission to execute the specified operation.                                                                                                                                                     |
| `UNAUTHENTICATED`     | The request does not have valid authentication credentials for the operation.                                                                                                                                               |
