Skip to content

Commit

Permalink
feat: HTTPException implements HasHttpStatusCodeException
Browse files Browse the repository at this point in the history
HTTPException may be used for HTTP status code in apps.
  • Loading branch information
kenjis committed Jul 11, 2022
1 parent 0581338 commit d414c1e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion system/HTTP/Exceptions/HTTPException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,20 @@
namespace CodeIgniter\HTTP\Exceptions;

use CodeIgniter\Exceptions\FrameworkException;
use CodeIgniter\Exceptions\HasHttpStatusCodeException;

/**
* Things that can go wrong with HTTP
*/
class HTTPException extends FrameworkException
class HTTPException extends FrameworkException implements HasHttpStatusCodeException
{
/**
* the default HTTP Status code
*
* @var int
*/
protected $code = 500;

/**
* For CurlRequest
*
Expand Down

0 comments on commit d414c1e

Please sign in to comment.