Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
faab007nl committed Apr 20, 2022
2 parents 5294852 + 3b3e96c commit 5c40849
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/LaravelViper.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,11 @@ private function makeRequest(string $method, string $uri, ?array $body = null, b
}

return match ($response->getStatusCode()) {
400 => throw new RequestInvalidException,
401 => throw new InvalidTokenException,
403 => throw new InvalidApiKeyException,
429 => throw new RateLimitException,
500 => throw new ServerErrorException,
400 => throw new RequestInvalidException(),
401 => throw new InvalidTokenException(),
403 => throw new InvalidApiKeyException(),
429 => throw new RateLimitException(),
500 => throw new ServerErrorException(),
default => throw new InvalidResponseException()
};
} catch (GuzzleException $e) {
Expand Down

0 comments on commit 5c40849

Please sign in to comment.