# Class RESTian_Response

A RESTian_Response represents the return values from an HTTP request

Located at core-classes/class-response.php

Methods summary
`public` | # `__construct( array $args = array() )` #### Parameters $args `array` $args
`public` | # `set_http_error( mixed $number, mixed $message )` #### Parameters $number `mixed` $number $message `mixed` $message
`public boolean|`RESTian_Http_Agent_Base`` | # `is_http_error( )` #### Returns `boolean|`RESTian_Http_Agent_Base``
`public boolean|object` | # `get_error( )` #### Returns `boolean|object`
`public boolean|object` | # `has_error( )` #### Returns `boolean|object`
`public boolean|object` | # `is_error( )` #### Returns `boolean|object`
`public` | # `set_error( mixed $code, boolean|string|`RESTian_Service` $message = false )` #### Parameters $code `mixed` $code $message `boolean|string|`RESTian_Service`` $message

Properties summary
`public integer` | $status_code | `200` | #
`public boolean` | $message | `false` | #
`public object|array` | $data | `` | # A structured version of the body, is applicable. A structured version of the body, is applicable.
`public boolean` | $body | `false` | #
`public `RESTian_Http_Agent_Base`` | $http_error | `false` | # Encapsules the specifics for the HTTP agent: PHP's curl ('php_curl') or WordPress' ('wordpress'). Contains raw returned data (data) and error results (error_num and error_msg) when an error occurs. Encapsules the specifics for the HTTP agent: PHP's curl ('php_curl') or WordPress' ('wordpress'). Contains raw returned data (data) and error results (error_num and error_msg) when an error occurs.
`public mixed` | $result | `` | #
`public `RESTian_Request`` | $request | `` | #
`public boolean` | $authenticated | `false` | #
`public array` | $grant | `array()` | #