function Response( statusCode ) { // eslint-disable-line stdlib/no-redeclare
	var self;
	if ( !( this instanceof Response ) ) {
		return new Response( statusCode );
	}
	EventEmitter.call( this );
	this.statusCode = statusCode;

	self = this;
	setTimeout( onTimeout, 0 );

	return this;

	/**
	* Callback invoked in the next event loop.
	*
	* @private
	* @returns {void}
	*/
	function onTimeout() {
		if ( statusCode !== 204 ) {
			self.emit( 'data', 'bad request' );
			return self.emit( 'end' );
		}
		self.emit( 'end' );
	}
}
Mock HTTP response constructor.

@constructor
@param {number} statusCode - mock status code
@returns {Response} mock HTTP response object