$code
$code : integer
The HTTP response code
The JSONHTTPResponse class
setCode( $code) : \Orpheus\InputController\HTTPController\HTTPResponse
Set the code
$code |
generateFromException(\Exception $exception, string $action = 'Handling the request') : \Orpheus\InputController\HTTPController\JSONHTTPResponse
Generate HTMLResponse from Exception
\Exception | $exception | |
string | $action |
generateFromUserException(\Orpheus\Exception\UserException $exception, array $values = array()) : \Orpheus\InputController\HTTPController\JSONHTTPResponse
Generate HTMLResponse from UserException
\Orpheus\Exception\UserException | $exception | |
array | $values |
render(string $textCode, mixed $other = null, string $domain = 'global', string $description = null) : \Orpheus\InputController\HTTPController\JSONHTTPResponse
Render the given data
string | $textCode | |
mixed | $other | |
string | $domain | |
string | $description |
returnData(mixed $data) : \Orpheus\InputController\HTTPController\JSONHTTPResponse
Get a response with the given $data
mixed | $data |
setData(mixed $data) : \Orpheus\InputController\HTTPController\JSONHTTPResponse
Set the data
mixed | $data |