```js
var HttpError = function(status, message, responseBody) {
    this.status = status;
    this.message = message;
    if (responseBody) {
        this.message += ' ' + String(responseBody).replace(/\n/g, '\\n');
    }
    if (Error.captureStackTrace) {
        Error.captureStackTrace(this, HttpError);
    }
};
HttpError.prototype = Object.create(Error.prototype);
HttpError.prototype.message = 'Http Error';
HttpError.prototype.name = 'E_HTTP_ERROR';
```