case 503:
                    $content = $response->getBody()->getContents();

                    if (strpos($response->getHeaderLine('Content-Type'), 'application/json') !== false) {
                        $content = json_decode($content, true);