public function __construct($message = '', Exception $previous = null)
 {
     parent::__construct($message, StatusCode::NOT_EXTENDED, $previous);
 }
 public function __construct($message = '', Exception $previous = null)
 {
     parent::__construct($message, StatusCode::SERVICE_UNAVAILABLE, $previous);
 }
 public function __construct($message = '', Exception $previous = null)
 {
     parent::__construct($message, StatusCode::FORBIDDEN, $previous);
 }
 public function __construct($message = '', Exception $previous = null)
 {
     parent::__construct($message, StatusCode::PAYLOAD_TOO_LARGE, $previous);
 }
 public function __construct($message = '', Exception $previous = null)
 {
     parent::__construct($message, StatusCode::UPGRADE_REQUIRED, $previous);
 }
 public function __construct($message = '', Exception $previous = null)
 {
     parent::__construct($message, StatusCode::REQUEST_HEADER_FIELDS_TOO_LARGE, $previous);
 }
 public function __construct($message = '', Exception $previous = null)
 {
     parent::__construct($message, StatusCode::MISDIRECTED_REQUEST, $previous);
 }
 public function __construct($message = '', Exception $previous = null)
 {
     parent::__construct($message, StatusCode::FAILED_DEPENDENCY, $previous);
 }
 public function __construct($message = '', Exception $previous = null)
 {
     parent::__construct($message, StatusCode::TOO_MANY_REQUESTS, $previous);
 }
 public function __construct($message = '', Exception $previous = null)
 {
     parent::__construct($message, StatusCode::UNSUPPORTED_MEDIA_TYPE, $previous);
 }
 public function __construct($message = '', Exception $previous = null)
 {
     parent::__construct($message, StatusCode::PROXY_AUTHENTICATION_REQUIRED, $previous);
 }
 public function __construct($message = '', Exception $previous = null)
 {
     parent::__construct($message, StatusCode::INSUFFICIENT_STORAGE, $previous);
 }
 public function __construct($message = '', Exception $previous = null)
 {
     parent::__construct($message, StatusCode::METHOD_NOT_ALLOWED, $previous);
 }
 public function __construct($message = '', Exception $previous = null)
 {
     parent::__construct($message, StatusCode::RANGE_NOT_SATISFIABLE, $previous);
 }
 public function __construct($message = '', Exception $previous = null)
 {
     parent::__construct($message, StatusCode::UNPROCESSABLE_ENTITY, $previous);
 }
 public function __construct($message = '', Exception $previous = null)
 {
     parent::__construct($message, StatusCode::URI_TOO_LONG, $previous);
 }
 public function __construct($message = '', Exception $previous = null)
 {
     parent::__construct($message, StatusCode::HTTP_VERSION_NOT_SUPPORTED, $previous);
 }
 public function handle(HttpException $e)
 {
     $view = ['error' => ['message' => $e->getMessage(), 'code' => $e->getCode()]];
     $this->responder->respond($view, $e->getCode());
 }
 public function __construct($message = '', Exception $previous = null)
 {
     parent::__construct($message, StatusCode::PRECONDITION_FAILED, $previous);
 }
 public function __construct($message = '', Exception $previous = null)
 {
     parent::__construct($message, StatusCode::LOOP_DETECTED, $previous);
 }
 public function __construct($message = '', Exception $previous = null)
 {
     parent::__construct($message, StatusCode::UNAUTHORIZED, $previous);
 }
 public function __construct($message = '', Exception $previous = null)
 {
     parent::__construct($message, StatusCode::INTERNAL_SERVER_ERROR, $previous);
 }
 public function __construct($message = '', Exception $previous = null)
 {
     parent::__construct($message, StatusCode::GATEWAY_TIMEOUT, $previous);
 }
 public function __construct($message = '', Exception $previous = null)
 {
     parent::__construct($message, StatusCode::UNAVAILABLE_FOR_LEGAL_REASONS, $previous);
 }
 public function __construct($message = '', Exception $previous = null)
 {
     parent::__construct($message, StatusCode::IM_A_TEAPOT, $previous);
 }
 public function __construct($message = '', Exception $previous = null)
 {
     parent::__construct($message, StatusCode::VARIANT_ALSO_NEGOTIATES, $previous);
 }