= 400, "HTTP status codes under 400 should not produce exceptions"); if (($code < 500 && $code > 431 && $code !== 451) || in_array($code, [418, 419, 420, 430])) { // unassigned 4xx code are changed to 400 $symbol = "httpStatus400"; } elseif ($code > 511 || $code === 509) { // unassigned 5xx codes and anything 600 or above is changed to 500 $symbol = "httpStatus500"; } } parent::__construct($symbol, $e); } }