UNPKG

@belgattitude/http-exception

Version:

Warning: has been moved to @httpx/exception. Please update.

20 lines (17 loc) 846 B
import { inherits as _inherits, createClass as _createClass, assertThisInitialized as _assertThisInitialized } from '../_virtual/_rollupPluginBabelHelpers.js'; import { getSuper } from '../utils/getSuper.js'; import { HttpClientException } from '../base/HttpClientException.js'; var HttpNotAcceptable = function (_HttpClientException) { _inherits(HttpNotAcceptable, _HttpClientException); function HttpNotAcceptable(msgOrParams) { var _this; var name = 'NotAcceptable'; _this = _HttpClientException.call(this, 406, getSuper(name, msgOrParams)) || this; Object.setPrototypeOf(_assertThisInitialized(_this), HttpNotAcceptable.prototype); _this.name = "Http".concat(name); return _this; } return _createClass(HttpNotAcceptable); }(HttpClientException); HttpNotAcceptable.STATUS = 406; export { HttpNotAcceptable };