# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.portos.sk/http-status-codes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
