Errors

A failed call answers with an HTTP status and an ErrorResponse body that names the error code and its enumeration.

A failed call has an HTTP status and a JSON api/schemas#ErrorResponse body:

JSON#
{"code": 6, "type": "UNKNOWN_TYPE", "domain": "BimWorksQueryError", "domain_full": "nl.bimbase.bimworks.common.actions.BimWorksQueryError", "message": "Unknown IFC type IFCWAL"}

type and domain name the constant and its enumeration on the error codes page, code is the constant's number within that enumeration, and message is for people.

Status When
400 Invalid input: a missing or invalid argument, an invalid query, identifier or path, a state conflict the request caused (a node name that already exists), or an uploaded file that cannot be read (INVALID_INPUT_FILE, NO_CONVERTIBLE_CONTENT, a StepParserErrorCode); uploading the same file again fails the same way.
401 The bearer token is missing, malformed, expired or otherwise invalid, or the login credentials are wrong.
403 Authenticated but not allowed: no read or write right on the node, a token without the operation's scope or locked to another IP, or a required user feature missing.
404 The node, version, model file or upload does not exist.
409 The request conflicts with the current state: a transaction against a version that is no longer the head of its node.
413 The request body is larger than the instance accepts (PAYLOAD_TOO_LARGE); the limit of a standard installation is 1 GB.
429 Too many requests from this client in a short time (TOO_MANY_REQUESTS), on an installation that limits the request rate.
500 An unexpected server-side error.
502 An upstream answer was unusable: AddModelWithUrl could not reach the host of the URL (UPLOAD_URL_NO_ROUTE_TO_HOST), or the language model of TextToAction gave no usable Action (OPEN_AI_IGNORED, AI_RETURNED_INVALID_ACTION).
503 The instance is restarting, stopped or down for maintenance (SERVICE_UNAVAILABLE, MAINTENANCE), or a server of the cluster that must store a file is down (REPLICATION_FAILED).
504 The reverse proxy stopped waiting for the answer (REQUEST_TIMED_OUT; after ten minutes on a standard installation). The request may still complete, so look for its result before you send it again.

The reverse proxy in front of the server answers 413, 429, 503 and 504 itself, with the same body (domain DefaultErrorCode) and an X-BIMworks-Proxy-Error header; on 429 and 503 the Retry-After header gives the seconds to wait before trying again.