private function parse()
    {
        if (!$this->response) {
            return [];
        }

        $body = json_decode((string) $this->response->getBody(), true);

        return isset($body['errors']) ? $body['errors'] : [];
    }
private function parse()
    {
        if (!$this->response) {
            return [];
        }

        $body = json_decode((string) $this->response->getBody(), true);

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

@return array
Parse JSON API errors out of the response body .