deliver
Posts an array of sessions to the Bugsnag Session Tracking API.
This request must be delivered to the endpoint specified in deliveryParams with the given HTTP headers.
You should return the DeliveryStatus which best matches the end-result of your delivery attempt. Bugsnag will use the return value to decide whether to delete the payload if it was cached on disk, or whether to reattempt delivery later on.
For example, a 2xx status code will indicate success so you should return DeliveryStatus.DELIVERED. Most 4xx status codes would indicate an unrecoverable error, so the report should be dropped using DeliveryStatus.FAILURE. For all other scenarios, delivery should be attempted again later by using DeliveryStatus.UNDELIVERED.
See https://docs.bugsnag.com/api/sessions/
Return
the end-result of your delivery attempt
Parameters
The session tracking payload
The delivery parameters to be used for this request
Posts an Error Report to the Bugsnag Error Reporting API.
This request must be delivered to the endpoint specified in deliveryParams with the given HTTP headers.
You should return the DeliveryStatus which best matches the end-result of your delivery attempt. Bugsnag will use the return value to decide whether to delete the payload if it was cached on disk, or whether to reattempt delivery later on.
For example, a 2xx status code will indicate success so you should return DeliveryStatus.DELIVERED. Most 4xx status codes would indicate an unrecoverable error, so the report should be dropped using DeliveryStatus.FAILURE. For all other scenarios, delivery should be attempted again later by using DeliveryStatus.UNDELIVERED.
See [https://docs.bugsnag.com/api/error-reporting/] (https://docs.bugsnag.com/api/error-reporting/)
Return
the end-result of your delivery attempt
Parameters
The error payload
The delivery parameters to be used for this request