Skip to content

Errors

Every error is JSON with a message.

{
"message": "Not found."
}

Validation errors also include errors, keyed by field.

{
"message": "The given data was invalid.",
"errors": {
"heartbeat_s": ["The heartbeat s field must not be greater than 3600."]
}
}

401 responses can also include a code. See Authentication.

Status Meaning What to do
200 Success
201 Created, for example a device was paired
202 Command accepted and queued. The bike has not confirmed it yet Poll the command
204 Success with no body
400 The requested API version is not supported Use a version from supported_versions. See Versioning
401 Missing, expired or revoked token Check the code
403 The action is not allowed Do not retry
404 The resource does not exist or belongs to someone else Check the id
409 Conflict, for example an alert that is already acknowledged Re-read the resource
422 Validation failed Fix the fields named in errors
429 Too many requests See Rate limits
500 Server error Retry later

Fields the API does not recognise are rejected with 422, so check your spelling if a request fails this way.