code: private function parse()
      {
          if (!$this->response) {
              return [];
          }
  
          $body = json_decode((string) $this->response->getBody(), true);
  
          return isset($body['errors']) ? $body['errors'] : [];
      }
docs: Parse JSON API errors out of the response body.
  
  @return array