blob: 0141e26c48c01fea663750ffc63c1be524ca7e31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<?php
namespace WpfTest\HttpReturnStatus;
use WpfTest\HttpReturnStatus;
class InternalServerError extends \Exception implements HttpReturnStatus {
public function __construct(\Exception $reason) {
$this->message = $reason->getMessage();
}
public function httpCode(): int {
return 500;
}
public function httpReason(): string {
return "Internal Server Error";
}
}
|