Error handling in DirectSend

HTTP Status Codes

See the below table for http 5xx errors and the appropriately handling.

HTTP status code


When used/action


Internal Error

Internal error within the platform.


Bad Gateway

Internal error, not recoverable. Please contact Berkeley if you encounter this error.


Service Unavailable

The request cannot be processed at this time. Under most circumstances this error will resolve quickly and the request can be retried.


Gateway Timeout

A request has timed out, however may have completed successfully. Under most circumstances this error will resolve quickly. For requests that use an idempotency key the request can be retried with the same key. We do recommend that clients check the status of a request using the appropriate get/list method.