UNPKG

@belgattitude/http-exception

Version:

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

20 lines (17 loc) 862 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 HttpPayloadTooLarge = function (_HttpClientException) { _inherits(HttpPayloadTooLarge, _HttpClientException); function HttpPayloadTooLarge(msgOrParams) { var _this; var name = 'PayloadTooLarge'; _this = _HttpClientException.call(this, 413, getSuper(name, msgOrParams)) || this; Object.setPrototypeOf(_assertThisInitialized(_this), HttpPayloadTooLarge.prototype); _this.name = "Http".concat(name); return _this; } return _createClass(HttpPayloadTooLarge); }(HttpClientException); HttpPayloadTooLarge.STATUS = 413; export { HttpPayloadTooLarge };