Menu
Grafana Cloud
Error Reference Legacy API
Warning: The Legacy REST API is no longer under active development. It should not be used except when it provides capabilities not yet offered by the Grafana Cloud k6 REST API.
The API returns errors in the following format:
json
{
"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:
message
describes the error.code
is 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 |
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:

Getting started with your metrics, logs, and traces in Grafana Cloud
Learn to use the best open source observability software (Grafana, Prometheus, Loki, and Tempo) without the overhead of managing and scaling your own stack.

Kubernetes monitoring, out-of-the-box with Grafana Cloud
In this webinar you’ll learn how Grafana offers developers and SREs a simple and quick-to-value solution for monitoring their Kubernetes infrastructure.

Unify your data with Grafana plugins: Datadog, Splunk, MongoDB, and more
In this webinar, learn how to leverage Grafana's plugin ecosystem for access to 80+ data sources, including plugins for Datadog, Splunk, MongoDB, and more.