function onEnd() {
		var data;
		if ( err ) {
			err.message = body;
			return onError( err );
		}
		// debug( 'Response body: %s', body ); // NOTE: this is NOT enabled by default as response bodies can be large, making inspection of logs difficult. Temporarily enable if you need to inspect response bodies.

		data = parse( body );
		if ( data instanceof Error ) {
			err = {
				'status': 502,
				'message': 'unable to parse endpoint response data as JSON: ' + data.message
			};
			return onError( err );
		}
		clbk( null, res, data );
	}
Event listener invoked upon a response end.

@private
@returns {void}