This section describes recommended best practices for handling HTTP errors.
The 503 HTTP status response code indicates that a timeout occurred, which could be caused by contended queries or queries with high compute operations, for example.
The best practice for handling 503 responses is to retry the query. Initially, retry using a smaller timeout value so your query can fail faster. Retry, applying an exponential back-off time so you are not continuing to query while posting queries can never succeed.
Is this article helpful?
Tell Fauna how the article can be improved:
Thank you for your feedback!