code: public static function serviceRespondedWithAnHttpError(ResponseInterface $response)
      {
          $message = "Discord responded with an HTTP error: {$response->getStatusCode()}";
  
          if ($error = Arr::get(json_decode($response->getBody(), true), 'message')) {
              $message .= ": $error";
          }
  
          return new static($message);
      }
docs: @param \Psr\Http\Message\ResponseInterface $response
  
  @return static