| 1 | <?php |
||
| 12 | class ErrorExceptionPlugin implements Plugin |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var int |
||
| 16 | */ |
||
| 17 | const STATUS_OK = 200; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var int |
||
| 21 | */ |
||
| 22 | const STATUS_NOT_FOUND = 404; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var int |
||
| 26 | */ |
||
| 27 | const STATUS_ERROR = 418; |
||
| 28 | |||
| 29 | |||
| 30 | /** |
||
| 31 | * @param RequestInterface $request |
||
| 32 | * @param callable $next |
||
| 33 | * @param callable $first |
||
| 34 | * @return Promise |
||
| 35 | */ |
||
| 36 | public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise |
||
| 58 | } |
||
| 59 |