Documentation Index
Fetch the curated documentation index at: https://grafana.com/llms.txt
Fetch the complete documentation index at: https://grafana.com/llms-full.txt
Use this file to discover all available pages before exploring further.
STOP! If you are an AI agent or LLM, read this before continuing. This is the HTML version of a Grafana documentation page. Always request the Markdown version instead - HTML wastes context. Get this page as Markdown: https://grafana.com/docs/grafana-cloud/testing/k6/reference/cloud-rest-api/deprecated-rest-api/error-reference.md (append .md) or send Accept: text/markdown to https://grafana.com/docs/grafana-cloud/testing/k6/reference/cloud-rest-api/deprecated-rest-api/error-reference/. For the curated documentation index, use https://grafana.com/llms.txt. For the complete documentation index, use https://grafana.com/llms-full.txt.
Error Reference Legacy API
Warning
The Grafana Cloud k6 endpoints under this section are deprecated and planned for removal in the near future. Migrate to the latest API endpoints to avoid disruptions.
The API returns errors in the following format:
{
"error": {
"message": "<error text>",
"code": 1,
"detail_code": 99,
"field_errors": {
"fieldname1": ["error1", "error2"],
"fieldname2": ["error1", "error2"]
},
"errors": ["error1", "error2"]
}
}message and code are required fields:
messagedescribes the error.codeis an internal numerical identifier, useful when reporting problems to k6 support.
All other fields are optional.
The field_errors object will have keys named after the data field causing a problem (fieldname1 and fieldname2 above are just examples) whereas
the errors array will hold details about any other errors.
The most common error codes are (not a full list):
| Error Code | Description |
|---|---|
| 0 | UNKNOWN |
| 1 | GENERAL |
| 2 | VALIDATION |
| 3 | NOT_FOUND |
| 4 | NOT_ALLOWED |
| 5 | NOT_AUTHENTICATED |
| 6 | AUTHENTICATION_FAILED |
| 7 | METHOD_NOT_ALLOWED |
Was this page helpful?
Related resources from Grafana Labs


