diff --git a/src/Exceptions/ApiException.php b/src/Exceptions/ApiException.php index c2d2d89..4c3b5a5 100644 --- a/src/Exceptions/ApiException.php +++ b/src/Exceptions/ApiException.php @@ -21,7 +21,7 @@ class ApiException extends Exception */ public function __construct(string $message, Throwable $previous = null) { - parent::__construct($message, $previous); + parent::__construct($message, $this->response_code, $previous); } public static function fromException(Exception $e)