Skip to content

Commit d409534

Browse files
committed
fix throwing exception on status code
1 parent 1e76750 commit d409534

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/php/src/Client.php.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class Client
186186
187187
curl_close($ch);
188188
189-
if($responseStatus < 200 || $responseStatus >= 300) {
189+
if($responseStatus >= 400) {
190190
throw new {{spec.title | caseUcfirst}}Exception($responseBody['message'], $responseStatus, $responseBody);
191191
}
192192

0 commit comments

Comments
 (0)