private function Client::handleUnexpectedStatus in Smart IP 7.2
Same name and namespace in other branches
- 6.2 includes/vendor/maxmind/web-service-common/src/WebService/Client.php \MaxMind\WebService\Client::handleUnexpectedStatus()
Parameters
int $statusCode The HTTP status code:
string $service The service name:
string $path The URI path used in the request:
Throws
1 call to Client::handleUnexpectedStatus()
- Client::handleResponse in includes/
vendor/ maxmind/ web-service-common/ src/ WebService/ Client.php
File
- includes/
vendor/ maxmind/ web-service-common/ src/ WebService/ Client.php, line 376
Class
- Client
- This class is not intended to be used directly by an end-user of a MaxMind web service. Please use the appropriate client API for the service that you are using. @package MaxMind\WebService @internal
Namespace
MaxMind\WebServiceCode
private function handleUnexpectedStatus($statusCode, $service, $path) {
throw new HttpException('Received an unexpected HTTP status ' . "({$statusCode}) for {$service}", $statusCode, $this
->urlFor($path));
}