CodeExplorer RedirectionException example
private function checkStatusCode(int
$code): void
{ if (500 <=
$code) { throw new ServerException($this);
} if (400 <=
$code) { throw new ClientException($this);
} if (300 <=
$code) { throw new RedirectionException($this);
} }}