function handleHttpResponse(response, request = {}) {
	if (!testHTTPCode.isSuccess(response.status)) {
		return Promise.reject(response);
	}

	return handleBody(response, request);
}
/**
 * handleHttpResponse - handle the http response
 *
 * @param  {Response} response A response object
 * @return {Promise}           A promise that:
 * - resolves with the result of parsing the body
 * - reject the response
 */
handle the http response
@param  {Response} response A response object
@return {Promise}           A promise that:
- resolves with the result of parsing the body
- reject the response
handle the http response @param { Response } response A response object @return { Promise } A promise that : - resolves with the result of parsing the body - reject the response
function handleHttpResponse(response, request = {}) {
	if (!testHTTPCode.isSuccess(response.status)) {
		return Promise.reject(response);
	}
	return handleBody(response, request);
}
function handleHttpResponse ( response , request = { } ) { if ( ! testHTTPCode . isSuccess ( response . status ) ) { return Promise . reject ( response ) ; } return handleBody ( response , request ) ; }
handleHttpResponse - handle the http response
 @param  {Response} response A response object
 @return {Promise}           A promise that:
 - resolves with the result of parsing the body
 - reject the response
handleHttpResponse - handle the http response @param { Response } response A response object @return { Promise } A promise that : - resolves with the result of parsing the body - reject the response