$errData = json_decode($res->getBody());
if (!isset($errData->error)) {
Log::err('Error response does not contain "error" property');
$errData = json_decode($res->getBody());
if (!isset($errData->error)) {
Log::err('Error response does not contain "error" property');