To get full access to the Kademi Hub existing customers can login here, or new customers can register here.
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
| Property | Returns | Description |
|---|---|---|
| body | String | Raw body of the push service's HTTP response, typically diagnostic detail returned when the send did not succeed. |
| status | String | HTTP reason phrase associated with getStatusCode, e.g. "Created". |
| statusCode | int | HTTP 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.