Skip to content

Commit a17d808

Browse files
committed
add restricted_api_key error
1 parent c8d5bd2 commit a17d808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Transporters/HttpTransporter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ protected function throwIfJsonError(ResponseInterface $response, string $content
6969
try {
7070
$response = json_decode($contents, true, 512, JSON_THROW_ON_ERROR);
7171

72-
$errors = ['missing_required_fields', 'missing_required_field', 'missing_api_key', 'invalid_api_key', 'invalid_from_address', 'validation_error', 'not_found', 'method_not_allowed', 'invalid_scope', 'internal_server_error'];
72+
$errors = ['missing_required_fields', 'missing_required_field', 'missing_api_key', 'invalid_api_key', 'invalid_from_address', 'validation_error', 'not_found', 'method_not_allowed', 'invalid_scope', 'restricted_api_key', 'internal_server_error'];
7373
if (
7474
isset($response['error']) ||
7575
in_array($response['name'], $errors)

0 commit comments

Comments
 (0)