Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion docs/querying/querying.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ curl -X DELETE "http://host:port/druid/v2/abc123"

## Query errors

If a query fails, you will get an HTTP 500 response containing a JSON object with the following structure:
If a query fails, Druid returns a response with an HTTP response code and a JSON object with the following structure:

```json
{
Expand All @@ -117,9 +117,14 @@ If a query fails, you will get an HTTP 500 response containing a JSON object wit
"host" : "druid1.example.com:8083"
}
```
The HTTP response code returned depends on the type of query failure. For timed out queries, an HTTP 504 response code is returned.

For [secured](../design/auth.md) Druid clusters, query requests respond with an HTTP 401 response code in case of an authentication failure. For authorization failures, an HTTP 403 response code is returned.

If a query request fails due to being limited by the [query scheduler laning configuration](../configuration/index.md#broker), an HTTP 429 response with the same JSON object schema as an error response, but with `errorMessage` of the form: "Total query capacity exceeded" or "Query capacity exceeded for lane 'low'".

For every other type of query failures, an HTTP 500 response code is returned.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other missing response codes here are 401 and 403 which can be returned for auth failures. Would you please add them as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Added


The fields in the response are:

|field|description|
Expand Down