Elgg  Version 3.0
ErrorResponse.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Http;
4 
8 class ErrorResponse extends OkResponse {
9 
20  if (isset($status_code) && (!is_numeric($status_code) || $status_code < 100 || $status_code > 599)) {
22  }
23 
24  parent::__construct($error, $status_code, $forward_url);
25  }
26 }
Error response builder.
$error
Bad request error.
Definition: 400.php:6
__construct($error= '', $status_code=ELGG_HTTP_BAD_REQUEST, $forward_url=REFERRER)
Constructor.
const REFERRER
Definition: constants.php:42
const ELGG_HTTP_BAD_REQUEST
Definition: constants.php:79
const ELGG_HTTP_INTERNAL_SERVER_ERROR
Definition: constants.php:106
Response builder.
Definition: OkResponse.php:10