Response
A class that creates a definition for an HTTP response. If an exception occurs during processing, most of the properties in the response object are empty.
Properties
Name | Type | Description |
---|---|---|
code | number | The HTTP status code that is assigned to the response. If an exception occurs during processing, the property is empty. |
exception | Object | The exception that occurred during processing. |
headers | Array.<{name: String, value: String}> | A collection of response headers. If an exception occurs during processing, the collection is empty. |
isSuccess | boolean | An indication of the success or failure for the request. If the HTTP status code is between 200 (inclusive) and 400 (exclusive), this property is set to 'true'. |
response | string | The response body. If an exception occurs during processing, the response body is empty (null). |
responseAsStream | Object | A byte stream representation of the response body. If an exception occurs during processing, the property is empty (null). |