| Ocalt Query Language
Pricing Dashboard ocalt.com v1.0

Error Codes

When a query fails, the response has status: "error" and an error object with a code and message. The HTTP status is 200 (the transport succeeded; the OQL execution failed).

{ "status": "error", "error": { "code": "StringNoMatch", "message": "No match for /\\d+/" } }
CodeDescription
ParseErrorSyntax error in the query — check verb spelling and modifier order
QuotaExceededDaily query limit reached — upgrade tier
InstanceLimitExceededConcurrent query limit reached — upgrade tier or reduce parallelism
AuthFailedInvalid or expired session token in the auth object
FsReadErrorFile not found or permission error on READ, INCLUDE, or IMAGE LOAD
FsWriteErrorWrite failed — storage full or path invalid
NetUnreachableFETCH, POST, or other network verb could not connect
NetTimeoutNetwork request timed out
StringFailedString verb received wrong type or invalid input
StringNoMatchMATCH or EXTRACT found no match — use OR to handle gracefully
CastFailedCAST could not convert to the target type
CastIncompatibleCAST target type is not supported
DatabaseErrorQuery, insert, or update failed — check table and field names
ExtractNoMatchEXTRACT found no matching key or pattern
ExtractInvalidSelectorEXTRACT WHERE value is not valid regex or JSONPath
EmailFailedEmail could not be delivered
MapGeocodeErrorMAP GEOCODE could not find the address
MapNotConnectedMAP ROUTE or other map operation failed
EncodeFailedENCODE failed — check input type
DecodeFailedDECODE failed — invalid base64 or other encoded string
CompressFailedCOMPRESS failed — check input type and format
ConvertFailedCONVERT failed — unsupported format pair or corrupted input

Handling errors in OQL

FETCH "https://api.example.com/data" SET ?data OR NEW JSON OBJECT OPEN NEST SET "error" AS "Fetch failed — using default" AND SET "default" AS true CLOSE NEST SET ?data AFTER EMIT ?data