UNPKG

x-http-client

Version:

An http client to make it easier to send requests (including JSONP requests) to the server.

18 lines (14 loc) 513 B
var ResponseError = require('./ResponseError'); var inherits = require('../shared/inherits'); var addCustomParser = require('../shared/addCustomParser'); /** * @class * @param {string} code The error code. * @param {JSONPRequest} request The JSONP request. */ function JSONPResponseError(code, request) { ResponseError.call(this, code, request); addCustomParser(this, request.options, 'jsonpResponseErrorParser'); } inherits(ResponseError, JSONPResponseError); module.exports = JSONPResponseError;