Parse the response body and handle API errors.
protected parseBody ( string $body, integer $status ) : array | object |
$body |
string |
The raw, unparsed response body. |
$status |
integer |
The HTTP status code, used to see if additional error handling is needed. |
리턴 |
array | object |
The parsed response body. Type is controlled by Request::setReturnAssoc(). |