No results for

Powered byAlgolia

Error reference

The API returns errors in the following format:

{"error": {
"message": "<error text>",
"code": <int>,
"detail_code": <int>,
"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 CodeDescription
0UNKNOWN
1GENERAL
2VALIDATION
3NOT_FOUND
4NOT_ALLOWED
5NOT_AUTHENTICATED
6AUTHENTICATION_FAILED
7METHOD_NOT_ALLOWED