We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0581338 commit d414c1eCopy full SHA for d414c1e
system/HTTP/Exceptions/HTTPException.php
@@ -12,12 +12,20 @@
12
namespace CodeIgniter\HTTP\Exceptions;
13
14
use CodeIgniter\Exceptions\FrameworkException;
15
+use CodeIgniter\Exceptions\HasHttpStatusCodeException;
16
17
/**
18
* Things that can go wrong with HTTP
19
*/
-class HTTPException extends FrameworkException
20
+class HTTPException extends FrameworkException implements HasHttpStatusCodeException
21
{
22
+ /**
23
+ * the default HTTP Status code
24
+ *
25
+ * @var int
26
+ */
27
+ protected $code = 500;
28
+
29
30
* For CurlRequest
31
*
0 commit comments