UNPKG

485 BJavaScriptView Raw
1var ResponseError = require('./ResponseError');
2var inherits = require('../shared/inherits');
3var addMixin = require('../shared/addMixin');
4
5/**
6 * @class
7 * @param {string} code The error code.
8 * @param {HttpRequest} request The http request.
9 */
10function HttpResponseError(code, request) {
11 ResponseError.call(this, code, request);
12 addMixin(this, request.options, 'httpResponseErrorMixin');
13}
14
15inherits(HttpResponseError, ResponseError);
16
17module.exports = HttpResponseError;