private function isJsonResponse(ResponseInterface $response)
    {
        if ($response->getStatusCode() == 200) {
            return;
        }

        if ($response->getStatusCode() == 400) {
            throw new InvalidRequestException($response);
        }

        if ($response->getStatusCode() == 401) {
            throw new UnauthorizedRequestException($response);
        }

        throw new ServerResponseException($response);
    }
private function isJsonResponse(ResponseInterface $response)
    {
        if ($response->getStatusCode() == 200) {
            return;
        }

        if ($response->getStatusCode() == 400) {
            throw new InvalidRequestException($response);
        }

        if ($response->getStatusCode() == 401) {
            throw new UnauthorizedRequestException($response);
        }

        throw new ServerResponseException($response);
    }
private function isJsonResponse ( ResponseInterface $ response ) { if ( $ response -> getStatusCode ( ) == 200 ) { return ; } if ( $ response -> getStatusCode ( ) == 400 ) { throw new InvalidRequestException ( $ response ) ; } if ( $ response -> getStatusCode ( ) == 401 ) { throw new UnauthorizedRequestException ( $ response ) ; } throw new ServerResponseException ( $ response ) ; }
Check if the response given by fcm is parsable.

@param \Psr\Http\Message\ResponseInterface $response

@throws InvalidRequestException
@throws ServerResponseException
@throws UnauthorizedRequestException
Check if the response given by fcm is parsable .