httpexceptions.php 540 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Part of the Fuel framework.
  4. *
  5. * @package Fuel
  6. * @version 1.5
  7. * @author Fuel Development Team
  8. * @license MIT License
  9. * @copyright 2010 - 2013 Fuel Development Team
  10. * @link http://fuelphp.com
  11. */
  12. namespace Fuel\Core;
  13. class HttpNotFoundException extends \HttpException
  14. {
  15. public function response()
  16. {
  17. return new \Response(\View::forge('404'), 404);
  18. }
  19. }
  20. class HttpServerErrorException extends \HttpException
  21. {
  22. public function response()
  23. {
  24. return new \Response(\View::forge('500'), 500);
  25. }
  26. }