Error Codes
Reference list of octoja error codes with explanations and troubleshooting steps.
Written By Erdinc Akay
Last updated 25 days ago
This reference lists the error codes that can occur when working with the octoja API.
HTTP status codes
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.