OptionalhttpStatus: numberOptionalcauseReadonlycodeA code for the error. Codes indicate the cause of the error. It is safe to write programmatic logic against the code. They are part of the API contract.
Optional Readonlyconstraint_A machine readable description of any constraint failures encountered by the query. Present only if this query encountered constraint failures.
Optional ReadonlyhttpThe HTTP Status Code of the error.
Optional ReadonlyqueryDetails about the query sent along with the response
OptionalstackOptional ReadonlystatsStatistics regarding the query.
TODO: Deprecate this stats field. All ServiceErrors already provide
access to stats through queryInfo.stats
Static OptionalprepareOptional override for formatting stack traces
Staticstack
A failure due to the query timeout being exceeded.
This error can have one of two sources: 1. Fauna is behaving expectedly, but the query timeout provided was too aggressive and lower than the query's expected processing time. 2. Fauna was not available to service the request before the timeout was reached.
In either case, consider increasing the
query_timeout_msconfiguration for your client.