> For the complete documentation index, see [llms.txt](https://developers.portos.sk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.portos.sk/http-status-codes.md).

# HTTP Status codes

### Successful status codes

<table><thead><tr><th width="160.99999999999997">HTTP Status</th><th width="149"></th><th>Description</th></tr></thead><tbody><tr><td>200</td><td>OK</td><td>Operation was successful. Payload is located in response body.</td></tr><tr><td>201</td><td>Created</td><td>Create operation was successful. Payload is located in response body.</td></tr><tr><td>202</td><td>Accepted</td><td>Operation request is accepted. The task will continue in background.</td></tr><tr><td>204</td><td>No Content</td><td>Operation was successful. There is no payload in response body.</td></tr></tbody></table>

### Error status codes

Statuses in range 400-499 are considered as client errors, range 500-599 represents server errors.

<table><thead><tr><th width="154.99999999999997">HTTP Status</th><th width="145"></th><th width="192">Error model</th><th>Description</th></tr></thead><tbody><tr><td>400</td><td>Bad Request</td><td><a href="/pages/zqBks8q0D2RF4aFNVi2v#portosvalidationproblemdetails"><code>PortosValidationProblemDetails</code></a></td><td>Request is invalid or contains invalid data.</td></tr><tr><td>401</td><td>Unauthorized</td><td><a href="/pages/zqBks8q0D2RF4aFNVi2v#problemdetails"><code>ProblemDetails</code></a></td><td>User is not logged in, or user authentication has failed (invalid credentials).</td></tr><tr><td>403</td><td>Forbidden</td><td><a href="/pages/zqBks8q0D2RF4aFNVi2v#problemdetails"><code>ProblemDetails</code></a></td><td>User is logged in but does not have sufficient access rights, or operation itself is forbidden.</td></tr><tr><td>404</td><td>Not found</td><td><a href="/pages/zqBks8q0D2RF4aFNVi2v#problemdetails"><code>ProblemDetails</code></a></td><td>Resource is not found.</td></tr><tr><td>423</td><td>Locked</td><td><a href="/pages/zqBks8q0D2RF4aFNVi2v#problemdetails"><code>ProblemDetails</code></a></td><td>Resource is locked (temporarily used by another part of application).</td></tr><tr><td>500</td><td>Internal server error</td><td><a href="/pages/zqBks8q0D2RF4aFNVi2v#problemdetails"><code>ProblemDetails</code></a></td><td>Error occured on server side.</td></tr></tbody></table>
