Callback error handling
Callbacks can define their own error responses, but the Acronis API Callback Gateway provides default handling for specific HTTP error response codes and communication errors.
Default error response codes
These HTTP status codes do not need to be specified in callbacks. The Acronis API Callback Gateway will process them.
A corresponding error message will also be rendered in the user interface for partners and customers.
401 UnauthorizedThe callback handler rejected the unauthorized request.UI message: Connection to<cyberapp_name>
service could not be established due to invalid credentials. 403 ForbiddenThe callback handler rejected the request due to invalid credentials.UI message: Connection to<cyberapp_name>
service could not be established due to invalid credentials. 410 GoneThe callback handler is no longer available at the provided URL.UI message: Response from to<cyberapp_name>
service cannot be processed due to invalid format. 429 Too Many RequestsThe callback handler rejected the request due to too many requests. The request can be retried by API Callback Gateway.UI message: None 500-599The callback handler responded with an error that indicates a server error.UI message: Connection to<cyberapp_name>
service could not be established.
Where <cyberapp_name>
is the name of the CyberApp.
Communication errors
The following communication errors will be handled by the Acronis API Callback Gateway.
A corresponding error message will be rendered in the user interface for MSPs and End Customers.
TLS handshake failedAcronis API Callback Gateway was unable to negotiate the secure protocol with the callback handler.UI message: Connection to<cyberapp_name>
service could not be established. Invalid SSL certificateAcronis API Callback Gateway was unable to verify the SSL certificate of the callback handler domain name.UI message: Connection to<cyberapp_name>
service could not be established due to invalid certificate. Server is unreachableAcronis API Callback Gateway was unable to find a route to the callback handler.The request can be retried by API Callback Gateway.UI message: Connection to<cyberapp_name>
service could not be established. Connection timed outAcronis API Callback Gateway was able to establish the connection but did not receive a response within the specific time. The request can be retried by API Callback Gateway.UI message: Connection to<cyberapp_name>
service could not be established. Unexpected 2xx-3xx responseCallback handler responded with a response within the 200-399 range that does not match any code defined for this callback.UI message: Response from to<cyberapp_name>
service cannot be processed due to invalid format. Unexpected 4xx responseCallback handler responded with a response within the 400-499 range that does not match any code defined for this callback or in the Status codes table.UI message: Response from to<cyberapp_name>
service cannot be processed due to invalid format. Response schema errorCallback handler responded with a structure that does not match the schema defined for this callback.UI message: Response from to<cyberapp_name>
service cannot be processed due to invalid format. Request schema errorCallback handler received a request from the user interface which structure does not match the schema defined for this callback.UI message: Request to<cyberapp_name>
was not sent due to invalid format.
Where <cyberapp_name>
is the name of the CyberApp.