Error Codes
Reference list of octoja error codes with explanations and troubleshooting steps.
This reference lists the error codes that can occur when working with the octoja API.
HTTP status codes
Concurrent changes to the same resource can also produce 409 Conflict. Reload the latest state, reconcile your intended change with it, and only then submit again. Do not blindly repeat the same write. This conflict response uses application/problem+json and includes a traceId you can supply when contacting support.
Error response format
Most error responses follow RFC 7807 Problem Details and include four fields:
{
"type": "https://tools.ietf.org/html/rfc9110#section-15.5.1",
"title": "Bad Request",
"status": 400,
"detail": "Customer name is required."
}
Exception: requests that fail authentication (missing or expired session cookie) return 401 Unauthorized with an empty body and no application/problem+json content type. Treat any 401 as "re-authenticate" without expecting a problem-details payload.
TOTP two-step login
When a user has two-factor authentication enabled, login requires two requests. The login endpoint and its request fields are documented in API Authentication.
- Submit
mailAddressandpassword. The server returns 403 withdetail: "TOTP code required.": this is expected, not an error. - Resubmit with
mailAddress,password, and the currentTOTPcode. A correct code returns tokens. An incorrect code returns 401.
Was this helpful?
More in API Reference
API AuthenticationAsset Logs APICustomers APIDevices APIStill need help? Ask the team