$status
$status : integer
REST Response
This class is used to encapsulate the response from the API. Whilst it is used internally, it is also made available to response interceptors for reading from and/or writing to.
__construct(integer $status, mixed $payload, array $headers = array())
Response object constructor. Response properties should be set here (rather than just setting the object properties directly).
integer | $status | The HTTP status code of the request |
mixed | $payload | The response issued by the API |
array | $headers | Any headers returned by the server |