You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
817 B
46 lines
817 B
<?php
|
|
/**
|
|
* Part of the Fuel framework.
|
|
*
|
|
* @package Fuel
|
|
* @version 1.8
|
|
* @author Fuel Development Team
|
|
* @license MIT License
|
|
* @copyright 2010 - 2016 Fuel Development Team
|
|
* @link http://fuelphp.com
|
|
*/
|
|
|
|
namespace Fuel\Core;
|
|
|
|
class HttpBadRequestException extends HttpException
|
|
{
|
|
public function response()
|
|
{
|
|
return new \Response(\View::forge('400'), 400);
|
|
}
|
|
}
|
|
|
|
class HttpNoAccessException extends HttpException
|
|
{
|
|
public function response()
|
|
{
|
|
return new \Response(\View::forge('403'), 403);
|
|
}
|
|
}
|
|
|
|
class HttpNotFoundException extends HttpException
|
|
{
|
|
public function response()
|
|
{
|
|
return new \Response(\View::forge('404'), 404);
|
|
}
|
|
}
|
|
|
|
class HttpServerErrorException extends HttpException
|
|
{
|
|
public function response()
|
|
{
|
|
return new \Response(\View::forge('500'), 500);
|
|
}
|
|
}
|