Immutable wrapper around the HTTP response returned by the push service when a web push notification is sent, letting callers check whether delivery succeeded and read any diagnostic detail returned.

Implements: HttpNotificationResponse


Properties

PropertyReturnsDescription
bodyStringRaw body of the push service's HTTP response, typically diagnostic detail returned when the send did not succeed.
statusStringHTTP reason phrase associated with getStatusCode, e.g. "Created".
statusCodeintHTTP status code returned by the push service for the send request, e.g. 201 for a successful push.

Methods

getStatusCode()

Returns: int

HTTP status code returned by the push service for the send request, e.g. 201 for a successful push.

getStatus()

Returns: String

HTTP reason phrase associated with getStatusCode, e.g. "Created".

getBody()

Returns: String

Raw body of the push service's HTTP response, typically diagnostic detail returned when the send did not succeed.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.