@tsed/exceptions 6.88.1 → 6.89.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/lib/{clientErrors → cjs/clientErrors}/BadMapping.d.ts +0 -0
  2. package/lib/cjs/clientErrors/BadMapping.js +13 -0
  3. package/lib/cjs/clientErrors/BadMapping.js.map +1 -0
  4. package/lib/{clientErrors → cjs/clientErrors}/BadRequest.d.ts +0 -0
  5. package/lib/cjs/clientErrors/BadRequest.js +12 -0
  6. package/lib/cjs/clientErrors/BadRequest.js.map +1 -0
  7. package/lib/{clientErrors → cjs/clientErrors}/Conflict.d.ts +0 -0
  8. package/lib/cjs/clientErrors/Conflict.js +12 -0
  9. package/lib/cjs/clientErrors/Conflict.js.map +1 -0
  10. package/lib/{clientErrors → cjs/clientErrors}/ExpectationFailed.d.ts +0 -0
  11. package/lib/cjs/clientErrors/ExpectationFailed.js +12 -0
  12. package/lib/cjs/clientErrors/ExpectationFailed.js.map +1 -0
  13. package/lib/{clientErrors → cjs/clientErrors}/Forbidden.d.ts +0 -0
  14. package/lib/cjs/clientErrors/Forbidden.js +12 -0
  15. package/lib/cjs/clientErrors/Forbidden.js.map +1 -0
  16. package/lib/{clientErrors → cjs/clientErrors}/Gone.d.ts +0 -0
  17. package/lib/cjs/clientErrors/Gone.js +12 -0
  18. package/lib/cjs/clientErrors/Gone.js.map +1 -0
  19. package/lib/{clientErrors → cjs/clientErrors}/ImATeapot.d.ts +0 -0
  20. package/lib/cjs/clientErrors/ImATeapot.js +13 -0
  21. package/lib/cjs/clientErrors/ImATeapot.js.map +1 -0
  22. package/lib/{clientErrors → cjs/clientErrors}/LengthRequired.d.ts +0 -0
  23. package/lib/cjs/clientErrors/LengthRequired.js +12 -0
  24. package/lib/cjs/clientErrors/LengthRequired.js.map +1 -0
  25. package/lib/{clientErrors → cjs/clientErrors}/MethodNotAllowed.d.ts +0 -0
  26. package/lib/cjs/clientErrors/MethodNotAllowed.js +12 -0
  27. package/lib/cjs/clientErrors/MethodNotAllowed.js.map +1 -0
  28. package/lib/{clientErrors → cjs/clientErrors}/MisdirectedRequest.d.ts +0 -0
  29. package/lib/cjs/clientErrors/MisdirectedRequest.js +12 -0
  30. package/lib/cjs/clientErrors/MisdirectedRequest.js.map +1 -0
  31. package/lib/{clientErrors → cjs/clientErrors}/NotAcceptable.d.ts +0 -0
  32. package/lib/cjs/clientErrors/NotAcceptable.js +12 -0
  33. package/lib/cjs/clientErrors/NotAcceptable.js.map +1 -0
  34. package/lib/{clientErrors → cjs/clientErrors}/NotFound.d.ts +0 -0
  35. package/lib/cjs/clientErrors/NotFound.js +12 -0
  36. package/lib/cjs/clientErrors/NotFound.js.map +1 -0
  37. package/lib/{clientErrors → cjs/clientErrors}/PaymentRequired.d.ts +0 -0
  38. package/lib/cjs/clientErrors/PaymentRequired.js +12 -0
  39. package/lib/cjs/clientErrors/PaymentRequired.js.map +1 -0
  40. package/lib/{clientErrors → cjs/clientErrors}/PreconditionFailed.d.ts +0 -0
  41. package/lib/cjs/clientErrors/PreconditionFailed.js +12 -0
  42. package/lib/cjs/clientErrors/PreconditionFailed.js.map +1 -0
  43. package/lib/{clientErrors → cjs/clientErrors}/PreconditionRequired.d.ts +0 -0
  44. package/lib/cjs/clientErrors/PreconditionRequired.js +12 -0
  45. package/lib/cjs/clientErrors/PreconditionRequired.js.map +1 -0
  46. package/lib/{clientErrors → cjs/clientErrors}/ProxyAuthentificationRequired.d.ts +0 -0
  47. package/lib/cjs/clientErrors/ProxyAuthentificationRequired.js +12 -0
  48. package/lib/cjs/clientErrors/ProxyAuthentificationRequired.js.map +1 -0
  49. package/lib/{clientErrors → cjs/clientErrors}/RequestEntityTooLarge.d.ts +0 -0
  50. package/lib/cjs/clientErrors/RequestEntityTooLarge.js +12 -0
  51. package/lib/cjs/clientErrors/RequestEntityTooLarge.js.map +1 -0
  52. package/lib/{clientErrors → cjs/clientErrors}/RequestHeaderFieldsTooLarge.d.ts +0 -0
  53. package/lib/cjs/clientErrors/RequestHeaderFieldsTooLarge.js +12 -0
  54. package/lib/cjs/clientErrors/RequestHeaderFieldsTooLarge.js.map +1 -0
  55. package/lib/{clientErrors → cjs/clientErrors}/RequestRangeUnsatisfiable.d.ts +0 -0
  56. package/lib/cjs/clientErrors/RequestRangeUnsatisfiable.js +12 -0
  57. package/lib/cjs/clientErrors/RequestRangeUnsatisfiable.js.map +1 -0
  58. package/lib/{clientErrors → cjs/clientErrors}/RequestTimeout.d.ts +0 -0
  59. package/lib/cjs/clientErrors/RequestTimeout.js +12 -0
  60. package/lib/cjs/clientErrors/RequestTimeout.js.map +1 -0
  61. package/lib/{clientErrors → cjs/clientErrors}/RequestURITooLong.d.ts +0 -0
  62. package/lib/cjs/clientErrors/RequestURITooLong.js +12 -0
  63. package/lib/cjs/clientErrors/RequestURITooLong.js.map +1 -0
  64. package/lib/{clientErrors → cjs/clientErrors}/TooManyRequests.d.ts +0 -0
  65. package/lib/cjs/clientErrors/TooManyRequests.js +12 -0
  66. package/lib/cjs/clientErrors/TooManyRequests.js.map +1 -0
  67. package/lib/{clientErrors → cjs/clientErrors}/Unauthorized.d.ts +0 -0
  68. package/lib/cjs/clientErrors/Unauthorized.js +12 -0
  69. package/lib/cjs/clientErrors/Unauthorized.js.map +1 -0
  70. package/lib/{clientErrors → cjs/clientErrors}/UnavailableForLegalReasons.d.ts +0 -0
  71. package/lib/cjs/clientErrors/UnavailableForLegalReasons.js +12 -0
  72. package/lib/cjs/clientErrors/UnavailableForLegalReasons.js.map +1 -0
  73. package/lib/{clientErrors → cjs/clientErrors}/UnprocessableEntity.d.ts +0 -0
  74. package/lib/cjs/clientErrors/UnprocessableEntity.js +12 -0
  75. package/lib/cjs/clientErrors/UnprocessableEntity.js.map +1 -0
  76. package/lib/{clientErrors → cjs/clientErrors}/UnsupportedMediaType.d.ts +0 -0
  77. package/lib/cjs/clientErrors/UnsupportedMediaType.js +12 -0
  78. package/lib/cjs/clientErrors/UnsupportedMediaType.js.map +1 -0
  79. package/lib/{clientErrors → cjs/clientErrors}/UpgradeRequired.d.ts +0 -0
  80. package/lib/cjs/clientErrors/UpgradeRequired.js +12 -0
  81. package/lib/cjs/clientErrors/UpgradeRequired.js.map +1 -0
  82. package/lib/{clientErrors → cjs/clientErrors}/index.d.ts +0 -0
  83. package/lib/cjs/clientErrors/index.js +31 -0
  84. package/lib/cjs/clientErrors/index.js.map +1 -0
  85. package/lib/{core → cjs/core}/Exception.d.ts +0 -0
  86. package/lib/cjs/core/Exception.js +61 -0
  87. package/lib/cjs/core/Exception.js.map +1 -0
  88. package/lib/{core → cjs/core}/index.d.ts +0 -0
  89. package/lib/cjs/core/index.js +5 -0
  90. package/lib/cjs/core/index.js.map +1 -0
  91. package/lib/{index.d.ts → cjs/index.d.ts} +0 -0
  92. package/lib/cjs/index.js +8 -0
  93. package/lib/cjs/index.js.map +1 -0
  94. package/lib/{redirections → cjs/redirections}/MovedPermanently.d.ts +0 -0
  95. package/lib/cjs/redirections/MovedPermanently.js +12 -0
  96. package/lib/cjs/redirections/MovedPermanently.js.map +1 -0
  97. package/lib/{redirections → cjs/redirections}/MovedTemporarily.d.ts +0 -0
  98. package/lib/cjs/redirections/MovedTemporarily.js +13 -0
  99. package/lib/cjs/redirections/MovedTemporarily.js.map +1 -0
  100. package/lib/{redirections → cjs/redirections}/MultipleChoices.d.ts +0 -0
  101. package/lib/cjs/redirections/MultipleChoices.js +12 -0
  102. package/lib/cjs/redirections/MultipleChoices.js.map +1 -0
  103. package/lib/{redirections → cjs/redirections}/NotModified.d.ts +0 -0
  104. package/lib/cjs/redirections/NotModified.js +12 -0
  105. package/lib/cjs/redirections/NotModified.js.map +1 -0
  106. package/lib/{redirections → cjs/redirections}/PermanentRedirect.d.ts +0 -0
  107. package/lib/cjs/redirections/PermanentRedirect.js +12 -0
  108. package/lib/cjs/redirections/PermanentRedirect.js.map +1 -0
  109. package/lib/{redirections → cjs/redirections}/SeeOther.d.ts +0 -0
  110. package/lib/cjs/redirections/SeeOther.js +12 -0
  111. package/lib/cjs/redirections/SeeOther.js.map +1 -0
  112. package/lib/{redirections → cjs/redirections}/TemporaryRedirect.d.ts +0 -0
  113. package/lib/cjs/redirections/TemporaryRedirect.js +12 -0
  114. package/lib/cjs/redirections/TemporaryRedirect.js.map +1 -0
  115. package/lib/{redirections → cjs/redirections}/TooManyRedirects.d.ts +0 -0
  116. package/lib/cjs/redirections/TooManyRedirects.js +12 -0
  117. package/lib/cjs/redirections/TooManyRedirects.js.map +1 -0
  118. package/lib/{redirections → cjs/redirections}/UseProxy.d.ts +0 -0
  119. package/lib/cjs/redirections/UseProxy.js +12 -0
  120. package/lib/cjs/redirections/UseProxy.js.map +1 -0
  121. package/lib/{redirections → cjs/redirections}/index.d.ts +0 -0
  122. package/lib/cjs/redirections/index.js +13 -0
  123. package/lib/cjs/redirections/index.js.map +1 -0
  124. package/lib/{serverErrors → cjs/serverErrors}/BadGateway.d.ts +0 -0
  125. package/lib/cjs/serverErrors/BadGateway.js +12 -0
  126. package/lib/cjs/serverErrors/BadGateway.js.map +1 -0
  127. package/lib/{serverErrors → cjs/serverErrors}/BandwidthLimitExceeded.d.ts +0 -0
  128. package/lib/cjs/serverErrors/BandwidthLimitExceeded.js +12 -0
  129. package/lib/cjs/serverErrors/BandwidthLimitExceeded.js.map +1 -0
  130. package/lib/{serverErrors → cjs/serverErrors}/GatewayTimeout.d.ts +0 -0
  131. package/lib/cjs/serverErrors/GatewayTimeout.js +12 -0
  132. package/lib/cjs/serverErrors/GatewayTimeout.js.map +1 -0
  133. package/lib/{serverErrors → cjs/serverErrors}/InternalServerError.d.ts +0 -0
  134. package/lib/cjs/serverErrors/InternalServerError.js +12 -0
  135. package/lib/cjs/serverErrors/InternalServerError.js.map +1 -0
  136. package/lib/{serverErrors → cjs/serverErrors}/NetworkAuthenticationRequired.d.ts +0 -0
  137. package/lib/cjs/serverErrors/NetworkAuthenticationRequired.js +12 -0
  138. package/lib/cjs/serverErrors/NetworkAuthenticationRequired.js.map +1 -0
  139. package/lib/{serverErrors → cjs/serverErrors}/NotExtended.d.ts +0 -0
  140. package/lib/cjs/serverErrors/NotExtended.js +12 -0
  141. package/lib/cjs/serverErrors/NotExtended.js.map +1 -0
  142. package/lib/{serverErrors → cjs/serverErrors}/NotImplemented.d.ts +0 -0
  143. package/lib/cjs/serverErrors/NotImplemented.js +12 -0
  144. package/lib/cjs/serverErrors/NotImplemented.js.map +1 -0
  145. package/lib/{serverErrors → cjs/serverErrors}/ProxyError.d.ts +0 -0
  146. package/lib/cjs/serverErrors/ProxyError.js +13 -0
  147. package/lib/cjs/serverErrors/ProxyError.js.map +1 -0
  148. package/lib/{serverErrors → cjs/serverErrors}/ServiceUnvailable.d.ts +0 -0
  149. package/lib/cjs/serverErrors/ServiceUnvailable.js +12 -0
  150. package/lib/cjs/serverErrors/ServiceUnvailable.js.map +1 -0
  151. package/lib/{serverErrors → cjs/serverErrors}/VariantAlsoNegotiates.d.ts +0 -0
  152. package/lib/cjs/serverErrors/VariantAlsoNegotiates.js +12 -0
  153. package/lib/cjs/serverErrors/VariantAlsoNegotiates.js.map +1 -0
  154. package/lib/{serverErrors → cjs/serverErrors}/index.d.ts +0 -0
  155. package/lib/cjs/serverErrors/index.js +14 -0
  156. package/lib/cjs/serverErrors/index.js.map +1 -0
  157. package/lib/esm/clientErrors/BadMapping.js +9 -0
  158. package/lib/esm/clientErrors/BadMapping.js.map +1 -0
  159. package/lib/esm/clientErrors/BadRequest.js +8 -0
  160. package/lib/esm/clientErrors/BadRequest.js.map +1 -0
  161. package/lib/esm/clientErrors/Conflict.js +8 -0
  162. package/lib/esm/clientErrors/Conflict.js.map +1 -0
  163. package/lib/esm/clientErrors/ExpectationFailed.js +8 -0
  164. package/lib/esm/clientErrors/ExpectationFailed.js.map +1 -0
  165. package/lib/esm/clientErrors/Forbidden.js +8 -0
  166. package/lib/esm/clientErrors/Forbidden.js.map +1 -0
  167. package/lib/esm/clientErrors/Gone.js +8 -0
  168. package/lib/esm/clientErrors/Gone.js.map +1 -0
  169. package/lib/esm/clientErrors/ImATeapot.js +9 -0
  170. package/lib/esm/clientErrors/ImATeapot.js.map +1 -0
  171. package/lib/esm/clientErrors/LengthRequired.js +8 -0
  172. package/lib/esm/clientErrors/LengthRequired.js.map +1 -0
  173. package/lib/esm/clientErrors/MethodNotAllowed.js +8 -0
  174. package/lib/esm/clientErrors/MethodNotAllowed.js.map +1 -0
  175. package/lib/esm/clientErrors/MisdirectedRequest.js +8 -0
  176. package/lib/esm/clientErrors/MisdirectedRequest.js.map +1 -0
  177. package/lib/esm/clientErrors/NotAcceptable.js +8 -0
  178. package/lib/esm/clientErrors/NotAcceptable.js.map +1 -0
  179. package/lib/esm/clientErrors/NotFound.js +8 -0
  180. package/lib/esm/clientErrors/NotFound.js.map +1 -0
  181. package/lib/esm/clientErrors/PaymentRequired.js +8 -0
  182. package/lib/esm/clientErrors/PaymentRequired.js.map +1 -0
  183. package/lib/esm/clientErrors/PreconditionFailed.js +8 -0
  184. package/lib/esm/clientErrors/PreconditionFailed.js.map +1 -0
  185. package/lib/esm/clientErrors/PreconditionRequired.js +8 -0
  186. package/lib/esm/clientErrors/PreconditionRequired.js.map +1 -0
  187. package/lib/esm/clientErrors/ProxyAuthentificationRequired.js +8 -0
  188. package/lib/esm/clientErrors/ProxyAuthentificationRequired.js.map +1 -0
  189. package/lib/esm/clientErrors/RequestEntityTooLarge.js +8 -0
  190. package/lib/esm/clientErrors/RequestEntityTooLarge.js.map +1 -0
  191. package/lib/esm/clientErrors/RequestHeaderFieldsTooLarge.js +8 -0
  192. package/lib/esm/clientErrors/RequestHeaderFieldsTooLarge.js.map +1 -0
  193. package/lib/esm/clientErrors/RequestRangeUnsatisfiable.js +8 -0
  194. package/lib/esm/clientErrors/RequestRangeUnsatisfiable.js.map +1 -0
  195. package/lib/esm/clientErrors/RequestTimeout.js +8 -0
  196. package/lib/esm/clientErrors/RequestTimeout.js.map +1 -0
  197. package/lib/esm/clientErrors/RequestURITooLong.js +8 -0
  198. package/lib/esm/clientErrors/RequestURITooLong.js.map +1 -0
  199. package/lib/esm/clientErrors/TooManyRequests.js +8 -0
  200. package/lib/esm/clientErrors/TooManyRequests.js.map +1 -0
  201. package/lib/esm/clientErrors/Unauthorized.js +8 -0
  202. package/lib/esm/clientErrors/Unauthorized.js.map +1 -0
  203. package/lib/esm/clientErrors/UnavailableForLegalReasons.js +8 -0
  204. package/lib/esm/clientErrors/UnavailableForLegalReasons.js.map +1 -0
  205. package/lib/esm/clientErrors/UnprocessableEntity.js +8 -0
  206. package/lib/esm/clientErrors/UnprocessableEntity.js.map +1 -0
  207. package/lib/esm/clientErrors/UnsupportedMediaType.js +8 -0
  208. package/lib/esm/clientErrors/UnsupportedMediaType.js.map +1 -0
  209. package/lib/esm/clientErrors/UpgradeRequired.js +8 -0
  210. package/lib/esm/clientErrors/UpgradeRequired.js.map +1 -0
  211. package/lib/esm/clientErrors/index.js +28 -0
  212. package/lib/esm/clientErrors/index.js.map +1 -0
  213. package/lib/esm/core/Exception.js +56 -0
  214. package/lib/esm/core/Exception.js.map +1 -0
  215. package/lib/esm/core/index.js +2 -0
  216. package/lib/esm/core/index.js.map +1 -0
  217. package/lib/esm/index.js +5 -0
  218. package/lib/esm/index.js.map +1 -0
  219. package/lib/esm/redirections/MovedPermanently.js +8 -0
  220. package/lib/esm/redirections/MovedPermanently.js.map +1 -0
  221. package/lib/esm/redirections/MovedTemporarily.js +9 -0
  222. package/lib/esm/redirections/MovedTemporarily.js.map +1 -0
  223. package/lib/esm/redirections/MultipleChoices.js +8 -0
  224. package/lib/esm/redirections/MultipleChoices.js.map +1 -0
  225. package/lib/esm/redirections/NotModified.js +8 -0
  226. package/lib/esm/redirections/NotModified.js.map +1 -0
  227. package/lib/esm/redirections/PermanentRedirect.js +8 -0
  228. package/lib/esm/redirections/PermanentRedirect.js.map +1 -0
  229. package/lib/esm/redirections/SeeOther.js +8 -0
  230. package/lib/esm/redirections/SeeOther.js.map +1 -0
  231. package/lib/esm/redirections/TemporaryRedirect.js +8 -0
  232. package/lib/esm/redirections/TemporaryRedirect.js.map +1 -0
  233. package/lib/esm/redirections/TooManyRedirects.js +8 -0
  234. package/lib/esm/redirections/TooManyRedirects.js.map +1 -0
  235. package/lib/esm/redirections/UseProxy.js +8 -0
  236. package/lib/esm/redirections/UseProxy.js.map +1 -0
  237. package/lib/esm/redirections/index.js +10 -0
  238. package/lib/esm/redirections/index.js.map +1 -0
  239. package/lib/esm/serverErrors/BadGateway.js +8 -0
  240. package/lib/esm/serverErrors/BadGateway.js.map +1 -0
  241. package/lib/esm/serverErrors/BandwidthLimitExceeded.js +8 -0
  242. package/lib/esm/serverErrors/BandwidthLimitExceeded.js.map +1 -0
  243. package/lib/esm/serverErrors/GatewayTimeout.js +8 -0
  244. package/lib/esm/serverErrors/GatewayTimeout.js.map +1 -0
  245. package/lib/esm/serverErrors/InternalServerError.js +8 -0
  246. package/lib/esm/serverErrors/InternalServerError.js.map +1 -0
  247. package/lib/esm/serverErrors/NetworkAuthenticationRequired.js +8 -0
  248. package/lib/esm/serverErrors/NetworkAuthenticationRequired.js.map +1 -0
  249. package/lib/esm/serverErrors/NotExtended.js +8 -0
  250. package/lib/esm/serverErrors/NotExtended.js.map +1 -0
  251. package/lib/esm/serverErrors/NotImplemented.js +8 -0
  252. package/lib/esm/serverErrors/NotImplemented.js.map +1 -0
  253. package/lib/esm/serverErrors/ProxyError.js +9 -0
  254. package/lib/esm/serverErrors/ProxyError.js.map +1 -0
  255. package/lib/esm/serverErrors/ServiceUnvailable.js +8 -0
  256. package/lib/esm/serverErrors/ServiceUnvailable.js.map +1 -0
  257. package/lib/esm/serverErrors/VariantAlsoNegotiates.js +8 -0
  258. package/lib/esm/serverErrors/VariantAlsoNegotiates.js.map +1 -0
  259. package/lib/esm/serverErrors/index.js +11 -0
  260. package/lib/esm/serverErrors/index.js.map +1 -0
  261. package/lib/types/clientErrors/BadMapping.d.ts +6 -0
  262. package/lib/types/clientErrors/BadRequest.d.ts +5 -0
  263. package/lib/types/clientErrors/Conflict.d.ts +5 -0
  264. package/lib/types/clientErrors/ExpectationFailed.d.ts +5 -0
  265. package/lib/types/clientErrors/Forbidden.d.ts +5 -0
  266. package/lib/types/clientErrors/Gone.d.ts +5 -0
  267. package/lib/types/clientErrors/ImATeapot.d.ts +6 -0
  268. package/lib/types/clientErrors/LengthRequired.d.ts +5 -0
  269. package/lib/types/clientErrors/MethodNotAllowed.d.ts +5 -0
  270. package/lib/types/clientErrors/MisdirectedRequest.d.ts +5 -0
  271. package/lib/types/clientErrors/NotAcceptable.d.ts +5 -0
  272. package/lib/types/clientErrors/NotFound.d.ts +5 -0
  273. package/lib/types/clientErrors/PaymentRequired.d.ts +5 -0
  274. package/lib/types/clientErrors/PreconditionFailed.d.ts +5 -0
  275. package/lib/types/clientErrors/PreconditionRequired.d.ts +5 -0
  276. package/lib/types/clientErrors/ProxyAuthentificationRequired.d.ts +5 -0
  277. package/lib/types/clientErrors/RequestEntityTooLarge.d.ts +5 -0
  278. package/lib/types/clientErrors/RequestHeaderFieldsTooLarge.d.ts +5 -0
  279. package/lib/types/clientErrors/RequestRangeUnsatisfiable.d.ts +5 -0
  280. package/lib/types/clientErrors/RequestTimeout.d.ts +5 -0
  281. package/lib/types/clientErrors/RequestURITooLong.d.ts +5 -0
  282. package/lib/types/clientErrors/TooManyRequests.d.ts +5 -0
  283. package/lib/types/clientErrors/Unauthorized.d.ts +5 -0
  284. package/lib/types/clientErrors/UnavailableForLegalReasons.d.ts +5 -0
  285. package/lib/types/clientErrors/UnprocessableEntity.d.ts +5 -0
  286. package/lib/types/clientErrors/UnsupportedMediaType.d.ts +5 -0
  287. package/lib/types/clientErrors/UpgradeRequired.d.ts +5 -0
  288. package/lib/types/clientErrors/index.d.ts +27 -0
  289. package/lib/types/core/Exception.d.ts +45 -0
  290. package/lib/types/core/index.d.ts +1 -0
  291. package/lib/types/index.d.ts +4 -0
  292. package/lib/types/redirections/MovedPermanently.d.ts +5 -0
  293. package/lib/types/redirections/MovedTemporarily.d.ts +6 -0
  294. package/lib/types/redirections/MultipleChoices.d.ts +5 -0
  295. package/lib/types/redirections/NotModified.d.ts +5 -0
  296. package/lib/types/redirections/PermanentRedirect.d.ts +5 -0
  297. package/lib/types/redirections/SeeOther.d.ts +5 -0
  298. package/lib/types/redirections/TemporaryRedirect.d.ts +5 -0
  299. package/lib/types/redirections/TooManyRedirects.d.ts +5 -0
  300. package/lib/types/redirections/UseProxy.d.ts +5 -0
  301. package/lib/types/redirections/index.d.ts +9 -0
  302. package/lib/types/serverErrors/BadGateway.d.ts +5 -0
  303. package/lib/types/serverErrors/BandwidthLimitExceeded.d.ts +5 -0
  304. package/lib/types/serverErrors/GatewayTimeout.d.ts +5 -0
  305. package/lib/types/serverErrors/InternalServerError.d.ts +5 -0
  306. package/lib/types/serverErrors/NetworkAuthenticationRequired.d.ts +5 -0
  307. package/lib/types/serverErrors/NotExtended.d.ts +5 -0
  308. package/lib/types/serverErrors/NotImplemented.d.ts +5 -0
  309. package/lib/types/serverErrors/ProxyError.d.ts +6 -0
  310. package/lib/types/serverErrors/ServiceUnvailable.d.ts +5 -0
  311. package/lib/types/serverErrors/VariantAlsoNegotiates.d.ts +5 -0
  312. package/lib/types/serverErrors/index.d.ts +10 -0
  313. package/package.json +11 -7
  314. package/tsconfig.compile.esm.json +23 -0
  315. package/lib/index.js +0 -498
  316. package/lib/index.js.map +0 -1
  317. package/lib/index.modern.js +0 -451
  318. package/lib/index.modern.js.map +0 -1
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class Forbidden extends Exception {
3
+ constructor(message, origin) {
4
+ super(Forbidden.STATUS, message, origin);
5
+ }
6
+ }
7
+ Forbidden.STATUS = 403;
8
+ //# sourceMappingURL=Forbidden.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Forbidden.js","sourceRoot":"","sources":["../../../src/clientErrors/Forbidden.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,SAAU,SAAQ,SAAS;IAGtC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC3C,CAAC;;AAJe,gBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class Forbidden extends Exception {\n static readonly STATUS = 403;\n\n constructor(message: string, origin?: Error | string | any) {\n super(Forbidden.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class Gone extends Exception {
3
+ constructor(message, origin) {
4
+ super(Gone.STATUS, message, origin);
5
+ }
6
+ }
7
+ Gone.STATUS = 410;
8
+ //# sourceMappingURL=Gone.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Gone.js","sourceRoot":"","sources":["../../../src/clientErrors/Gone.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,IAAK,SAAQ,SAAS;IAGjC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACtC,CAAC;;AAJe,WAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class Gone extends Exception {\n static readonly STATUS = 410;\n\n constructor(message: string, origin?: Error | string | any) {\n super(Gone.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,9 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class ImATeapot extends Exception {
3
+ constructor(message, origin) {
4
+ super(ImATeapot.STATUS, message, origin);
5
+ this.name = "IM_A_TEAPOT";
6
+ }
7
+ }
8
+ ImATeapot.STATUS = 418;
9
+ //# sourceMappingURL=ImATeapot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImATeapot.js","sourceRoot":"","sources":["../../../src/clientErrors/ImATeapot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,SAAU,SAAQ,SAAS;IAItC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAH3C,SAAI,GAAW,aAAa,CAAC;IAI7B,CAAC;;AALe,gBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class ImATeapot extends Exception {\n static readonly STATUS = 418;\n name: string = \"IM_A_TEAPOT\";\n\n constructor(message: string, origin?: Error | string | any) {\n super(ImATeapot.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class LengthRequired extends Exception {
3
+ constructor(message, origin) {
4
+ super(LengthRequired.STATUS, message, origin);
5
+ }
6
+ }
7
+ LengthRequired.STATUS = 411;
8
+ //# sourceMappingURL=LengthRequired.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LengthRequired.js","sourceRoot":"","sources":["../../../src/clientErrors/LengthRequired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,cAAe,SAAQ,SAAS;IAG3C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;;AAJe,qBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class LengthRequired extends Exception {\n static readonly STATUS = 411;\n\n constructor(message: string, origin?: Error | string | any) {\n super(LengthRequired.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class MethodNotAllowed extends Exception {
3
+ constructor(message, origin) {
4
+ super(MethodNotAllowed.STATUS, message, origin);
5
+ }
6
+ }
7
+ MethodNotAllowed.STATUS = 405;
8
+ //# sourceMappingURL=MethodNotAllowed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MethodNotAllowed.js","sourceRoot":"","sources":["../../../src/clientErrors/MethodNotAllowed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAG7C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAClD,CAAC;;AAJe,uBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class MethodNotAllowed extends Exception {\n static readonly STATUS = 405;\n\n constructor(message: string, origin?: Error | string | any) {\n super(MethodNotAllowed.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class MisdirectedRequest extends Exception {
3
+ constructor(message, origin) {
4
+ super(MisdirectedRequest.STATUS, message, origin);
5
+ }
6
+ }
7
+ MisdirectedRequest.STATUS = 421;
8
+ //# sourceMappingURL=MisdirectedRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MisdirectedRequest.js","sourceRoot":"","sources":["../../../src/clientErrors/MisdirectedRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,kBAAmB,SAAQ,SAAS;IAG/C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,kBAAkB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC;;AAJe,yBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class MisdirectedRequest extends Exception {\n static readonly STATUS = 421;\n\n constructor(message: string, origin?: Error | string | any) {\n super(MisdirectedRequest.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class NotAcceptable extends Exception {
3
+ constructor(message, origin = "You must accept content-type " + message) {
4
+ super(NotAcceptable.STATUS, origin);
5
+ }
6
+ }
7
+ NotAcceptable.STATUS = 406;
8
+ //# sourceMappingURL=NotAcceptable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotAcceptable.js","sourceRoot":"","sources":["../../../src/clientErrors/NotAcceptable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,aAAc,SAAQ,SAAS;IAG1C,YAAY,OAAe,EAAE,SAA+B,+BAA+B,GAAG,OAAO;QACnG,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,CAAC;;AAJe,oBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class NotAcceptable extends Exception {\n static readonly STATUS = 406;\n\n constructor(message: string, origin: Error | string | any = \"You must accept content-type \" + message) {\n super(NotAcceptable.STATUS, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class NotFound extends Exception {
3
+ constructor(message, origin) {
4
+ super(NotFound.STATUS, message, origin);
5
+ }
6
+ }
7
+ NotFound.STATUS = 404;
8
+ //# sourceMappingURL=NotFound.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotFound.js","sourceRoot":"","sources":["../../../src/clientErrors/NotFound.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,QAAS,SAAQ,SAAS;IAGrC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC;;AAJe,eAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class NotFound extends Exception {\n static readonly STATUS = 404;\n\n constructor(message: string, origin?: Error | string | any) {\n super(NotFound.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class PaymentRequired extends Exception {
3
+ constructor(message, origin) {
4
+ super(PaymentRequired.STATUS, message, origin);
5
+ }
6
+ }
7
+ PaymentRequired.STATUS = 402;
8
+ //# sourceMappingURL=PaymentRequired.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaymentRequired.js","sourceRoot":"","sources":["../../../src/clientErrors/PaymentRequired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAG5C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;;AAJe,sBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class PaymentRequired extends Exception {\n static readonly STATUS = 402;\n\n constructor(message: string, origin?: Error | string | any) {\n super(PaymentRequired.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class PreconditionFailed extends Exception {
3
+ constructor(message, origin) {
4
+ super(PreconditionFailed.STATUS, message, origin);
5
+ }
6
+ }
7
+ PreconditionFailed.STATUS = 412;
8
+ //# sourceMappingURL=PreconditionFailed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PreconditionFailed.js","sourceRoot":"","sources":["../../../src/clientErrors/PreconditionFailed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,kBAAmB,SAAQ,SAAS;IAG/C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,kBAAkB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC;;AAJe,yBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class PreconditionFailed extends Exception {\n static readonly STATUS = 412;\n\n constructor(message: string, origin?: Error | string | any) {\n super(PreconditionFailed.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class PreconditionRequired extends Exception {
3
+ constructor(message, origin) {
4
+ super(PreconditionRequired.STATUS, message, origin);
5
+ }
6
+ }
7
+ PreconditionRequired.STATUS = 428;
8
+ //# sourceMappingURL=PreconditionRequired.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PreconditionRequired.js","sourceRoot":"","sources":["../../../src/clientErrors/PreconditionRequired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,oBAAqB,SAAQ,SAAS;IAGjD,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,oBAAoB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACtD,CAAC;;AAJe,2BAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class PreconditionRequired extends Exception {\n static readonly STATUS = 428;\n\n constructor(message: string, origin?: Error | string | any) {\n super(PreconditionRequired.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class ProxyAuthentificationRequired extends Exception {
3
+ constructor(message, origin) {
4
+ super(ProxyAuthentificationRequired.STATUS, message, origin);
5
+ }
6
+ }
7
+ ProxyAuthentificationRequired.STATUS = 407;
8
+ //# sourceMappingURL=ProxyAuthentificationRequired.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProxyAuthentificationRequired.js","sourceRoot":"","sources":["../../../src/clientErrors/ProxyAuthentificationRequired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,6BAA8B,SAAQ,SAAS;IAG1D,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,6BAA6B,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC/D,CAAC;;AAJe,oCAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class ProxyAuthentificationRequired extends Exception {\n static readonly STATUS = 407;\n\n constructor(message: string, origin?: Error | string | any) {\n super(ProxyAuthentificationRequired.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class RequestEntityTooLarge extends Exception {
3
+ constructor(message, origin) {
4
+ super(RequestEntityTooLarge.STATUS, message, origin);
5
+ }
6
+ }
7
+ RequestEntityTooLarge.STATUS = 413;
8
+ //# sourceMappingURL=RequestEntityTooLarge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestEntityTooLarge.js","sourceRoot":"","sources":["../../../src/clientErrors/RequestEntityTooLarge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,qBAAsB,SAAQ,SAAS;IAGlD,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,qBAAqB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACvD,CAAC;;AAJe,4BAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class RequestEntityTooLarge extends Exception {\n static readonly STATUS = 413;\n\n constructor(message: string, origin?: Error | string | any) {\n super(RequestEntityTooLarge.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class RequestHeaderFieldsTooLarge extends Exception {
3
+ constructor(message, origin) {
4
+ super(RequestHeaderFieldsTooLarge.STATUS, message, origin);
5
+ }
6
+ }
7
+ RequestHeaderFieldsTooLarge.STATUS = 431;
8
+ //# sourceMappingURL=RequestHeaderFieldsTooLarge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestHeaderFieldsTooLarge.js","sourceRoot":"","sources":["../../../src/clientErrors/RequestHeaderFieldsTooLarge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,2BAA4B,SAAQ,SAAS;IAGxD,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,2BAA2B,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC;;AAJe,kCAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class RequestHeaderFieldsTooLarge extends Exception {\n static readonly STATUS = 431;\n\n constructor(message: string, origin?: Error | string | any) {\n super(RequestHeaderFieldsTooLarge.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class RequestRangeUnsatisfiable extends Exception {
3
+ constructor(message, origin) {
4
+ super(RequestRangeUnsatisfiable.STATUS, message, origin);
5
+ }
6
+ }
7
+ RequestRangeUnsatisfiable.STATUS = 416;
8
+ //# sourceMappingURL=RequestRangeUnsatisfiable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestRangeUnsatisfiable.js","sourceRoot":"","sources":["../../../src/clientErrors/RequestRangeUnsatisfiable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,yBAA0B,SAAQ,SAAS;IAGtD,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,yBAAyB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC3D,CAAC;;AAJe,gCAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class RequestRangeUnsatisfiable extends Exception {\n static readonly STATUS = 416;\n\n constructor(message: string, origin?: Error | string | any) {\n super(RequestRangeUnsatisfiable.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class RequestTimeout extends Exception {
3
+ constructor(message, origin) {
4
+ super(RequestTimeout.STATUS, message, origin);
5
+ }
6
+ }
7
+ RequestTimeout.STATUS = 408;
8
+ //# sourceMappingURL=RequestTimeout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestTimeout.js","sourceRoot":"","sources":["../../../src/clientErrors/RequestTimeout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,cAAe,SAAQ,SAAS;IAG3C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;;AAJe,qBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class RequestTimeout extends Exception {\n static readonly STATUS = 408;\n\n constructor(message: string, origin?: Error | string | any) {\n super(RequestTimeout.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class RequestURITooLong extends Exception {
3
+ constructor(message, origin) {
4
+ super(RequestURITooLong.STATUS, message, origin);
5
+ }
6
+ }
7
+ RequestURITooLong.STATUS = 414;
8
+ //# sourceMappingURL=RequestURITooLong.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestURITooLong.js","sourceRoot":"","sources":["../../../src/clientErrors/RequestURITooLong.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAG9C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;;AAJe,wBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class RequestURITooLong extends Exception {\n static readonly STATUS = 414;\n\n constructor(message: string, origin?: Error | string | any) {\n super(RequestURITooLong.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class TooManyRequests extends Exception {
3
+ constructor(message, origin) {
4
+ super(TooManyRequests.STATUS, message, origin);
5
+ }
6
+ }
7
+ TooManyRequests.STATUS = 429;
8
+ //# sourceMappingURL=TooManyRequests.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TooManyRequests.js","sourceRoot":"","sources":["../../../src/clientErrors/TooManyRequests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAG5C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;;AAJe,sBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class TooManyRequests extends Exception {\n static readonly STATUS = 429;\n\n constructor(message: string, origin?: Error | string | any) {\n super(TooManyRequests.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class Unauthorized extends Exception {
3
+ constructor(message, origin) {
4
+ super(Unauthorized.STATUS, message, origin);
5
+ }
6
+ }
7
+ Unauthorized.STATUS = 401;
8
+ //# sourceMappingURL=Unauthorized.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Unauthorized.js","sourceRoot":"","sources":["../../../src/clientErrors/Unauthorized.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,YAAa,SAAQ,SAAS;IAGzC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC9C,CAAC;;AAJe,mBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class Unauthorized extends Exception {\n static readonly STATUS = 401;\n\n constructor(message: string, origin?: Error | string | any) {\n super(Unauthorized.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class UnavailableForLegalReasons extends Exception {
3
+ constructor(message, origin) {
4
+ super(UnavailableForLegalReasons.STATUS, message, origin);
5
+ }
6
+ }
7
+ UnavailableForLegalReasons.STATUS = 451;
8
+ //# sourceMappingURL=UnavailableForLegalReasons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnavailableForLegalReasons.js","sourceRoot":"","sources":["../../../src/clientErrors/UnavailableForLegalReasons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,0BAA2B,SAAQ,SAAS;IAGvD,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,0BAA0B,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5D,CAAC;;AAJe,iCAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class UnavailableForLegalReasons extends Exception {\n static readonly STATUS = 451;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UnavailableForLegalReasons.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class UnprocessableEntity extends Exception {
3
+ constructor(message, origin) {
4
+ super(UnprocessableEntity.STATUS, message, origin);
5
+ }
6
+ }
7
+ UnprocessableEntity.STATUS = 422;
8
+ //# sourceMappingURL=UnprocessableEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnprocessableEntity.js","sourceRoot":"","sources":["../../../src/clientErrors/UnprocessableEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,mBAAoB,SAAQ,SAAS;IAGhD,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,mBAAmB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC;;AAJe,0BAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class UnprocessableEntity extends Exception {\n static readonly STATUS = 422;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UnprocessableEntity.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class UnsupportedMediaType extends Exception {
3
+ constructor(message, origin) {
4
+ super(UnsupportedMediaType.STATUS, message, origin);
5
+ }
6
+ }
7
+ UnsupportedMediaType.STATUS = 415;
8
+ //# sourceMappingURL=UnsupportedMediaType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnsupportedMediaType.js","sourceRoot":"","sources":["../../../src/clientErrors/UnsupportedMediaType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,oBAAqB,SAAQ,SAAS;IAGjD,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,oBAAoB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACtD,CAAC;;AAJe,2BAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class UnsupportedMediaType extends Exception {\n static readonly STATUS = 415;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UnsupportedMediaType.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class UpgradeRequired extends Exception {
3
+ constructor(message, origin) {
4
+ super(UpgradeRequired.STATUS, message, origin);
5
+ }
6
+ }
7
+ UpgradeRequired.STATUS = 426;
8
+ //# sourceMappingURL=UpgradeRequired.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpgradeRequired.js","sourceRoot":"","sources":["../../../src/clientErrors/UpgradeRequired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAG5C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;;AAJe,sBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class UpgradeRequired extends Exception {\n static readonly STATUS = 426;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UpgradeRequired.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,28 @@
1
+ export * from "./BadMapping";
2
+ export * from "./BadRequest";
3
+ export * from "./Conflict";
4
+ export * from "./ExpectationFailed";
5
+ export * from "./Forbidden";
6
+ export * from "./Gone";
7
+ export * from "./ImATeapot";
8
+ export * from "./LengthRequired";
9
+ export * from "./MethodNotAllowed";
10
+ export * from "./MisdirectedRequest";
11
+ export * from "./NotAcceptable";
12
+ export * from "./NotFound";
13
+ export * from "./PaymentRequired";
14
+ export * from "./PreconditionFailed";
15
+ export * from "./PreconditionRequired";
16
+ export * from "./ProxyAuthentificationRequired";
17
+ export * from "./RequestRangeUnsatisfiable";
18
+ export * from "./RequestEntityTooLarge";
19
+ export * from "./RequestHeaderFieldsTooLarge";
20
+ export * from "./RequestTimeout";
21
+ export * from "./RequestURITooLong";
22
+ export * from "./TooManyRequests";
23
+ export * from "./Unauthorized";
24
+ export * from "./UnsupportedMediaType";
25
+ export * from "./UpgradeRequired";
26
+ export * from "./UnavailableForLegalReasons";
27
+ export * from "./UnprocessableEntity";
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/clientErrors/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC","sourcesContent":["export * from \"./BadMapping\";\nexport * from \"./BadRequest\";\nexport * from \"./Conflict\";\nexport * from \"./ExpectationFailed\";\nexport * from \"./Forbidden\";\nexport * from \"./Gone\";\nexport * from \"./ImATeapot\";\nexport * from \"./LengthRequired\";\nexport * from \"./MethodNotAllowed\";\nexport * from \"./MisdirectedRequest\";\nexport * from \"./NotAcceptable\";\nexport * from \"./NotFound\";\nexport * from \"./PaymentRequired\";\nexport * from \"./PreconditionFailed\";\nexport * from \"./PreconditionRequired\";\nexport * from \"./ProxyAuthentificationRequired\";\nexport * from \"./RequestRangeUnsatisfiable\";\nexport * from \"./RequestEntityTooLarge\";\nexport * from \"./RequestHeaderFieldsTooLarge\";\nexport * from \"./RequestTimeout\";\nexport * from \"./RequestURITooLong\";\nexport * from \"./TooManyRequests\";\nexport * from \"./Unauthorized\";\nexport * from \"./UnsupportedMediaType\";\nexport * from \"./UpgradeRequired\";\nexport * from \"./UnavailableForLegalReasons\";\nexport * from \"./UnprocessableEntity\";\n"]}
@@ -0,0 +1,56 @@
1
+ import { getStatusConstant } from "@tsed/schema";
2
+ export class Exception extends Error {
3
+ constructor(status = 500, message = "", origin) {
4
+ super(message);
5
+ /**
6
+ * Exception base name
7
+ * @type {string}
8
+ */
9
+ this.name = "HTTP_EXCEPTION";
10
+ /**
11
+ * Exception type
12
+ * @type {string}
13
+ */
14
+ this.type = "HTTP_EXCEPTION";
15
+ /**
16
+ * Headers must be sent to the response
17
+ */
18
+ this.headers = {};
19
+ this.status = status;
20
+ this.message = message;
21
+ this.name = getStatusConstant(status);
22
+ this.setOrigin(origin);
23
+ }
24
+ setHeaders(headers) {
25
+ this.headers = {
26
+ ...this.headers,
27
+ ...headers
28
+ };
29
+ return this;
30
+ }
31
+ setHeader(key, value) {
32
+ this.headers[key] = value;
33
+ return this;
34
+ }
35
+ setOrigin(origin) {
36
+ if (origin) {
37
+ if (origin instanceof Error) {
38
+ this.origin = origin;
39
+ this.message = `${this.message}, innerException: ${this.origin.message}`.trim();
40
+ }
41
+ else if (typeof origin === "string") {
42
+ this.origin = new Error(origin);
43
+ this.message = `${this.message}, innerException: ${this.origin.message}`.trim();
44
+ }
45
+ else {
46
+ this.body = origin;
47
+ }
48
+ }
49
+ }
50
+ toString() {
51
+ return `${this.name}(${this.status}): ${this.message} `.trim();
52
+ }
53
+ }
54
+ export class HTTPException extends Exception {
55
+ }
56
+ //# sourceMappingURL=Exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Exception.js","sourceRoot":"","sources":["../../../src/core/Exception.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAE/C,MAAM,OAAO,SAAU,SAAQ,KAAK;IAmClC,YAAY,SAAiB,GAAG,EAAE,UAAkB,EAAE,EAAE,MAA6B;QACnF,KAAK,CAAC,OAAO,CAAC,CAAC;QAnCjB;;;WAGG;QACI,SAAI,GAAW,gBAAgB,CAAC;QAKvC;;;WAGG;QACI,SAAI,GAAW,gBAAgB,CAAC;QAcvC;;WAEG;QACI,YAAO,GAAyB,EAAE,CAAC;QAOxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;QAEtC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC;IAED,UAAU,CAAC,OAA6B;QACtC,IAAI,CAAC,OAAO,GAAG;YACb,GAAG,IAAI,CAAC,OAAO;YACf,GAAG,OAAO;SACX,CAAC;QAEF,OAAO,IAAI,CAAC;IACd,CAAC;IAED,SAAS,CAAC,GAAW,EAAE,KAAU;QAC/B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QAE1B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,SAAS,CAAC,MAA4B;QACpC,IAAI,MAAM,EAAE;YACV,IAAI,MAAM,YAAY,KAAK,EAAE;gBAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;gBACrB,IAAI,CAAC,OAAO,GAAG,GAAG,IAAI,CAAC,OAAO,qBAAqB,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC;aACjF;iBAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;gBACrC,IAAI,CAAC,MAAM,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC;gBAChC,IAAI,CAAC,OAAO,GAAG,GAAG,IAAI,CAAC,OAAO,qBAAqB,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC;aACjF;iBAAM;gBACL,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC;aACpB;SACF;IACH,CAAC;IAED,QAAQ;QACN,OAAO,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,MAAM,IAAI,CAAC,OAAO,GAAG,CAAC,IAAI,EAAE,CAAC;IACjE,CAAC;CACF;AAED,MAAM,OAAO,aAAc,SAAQ,SAAS;CAAG","sourcesContent":["import {getStatusConstant} from \"@tsed/schema\";\n\nexport class Exception extends Error {\n /**\n * Exception base name\n * @type {string}\n */\n public name: string = \"HTTP_EXCEPTION\";\n /**\n * Message of the exception\n */\n public message: string;\n /**\n * Exception type\n * @type {string}\n */\n public type: string = \"HTTP_EXCEPTION\";\n /**\n * Stack calling\n */\n public stack: string;\n public origin: Error & any;\n /**\n * HTTP Code Status\n */\n public status: number;\n /**\n *\n */\n public body: any;\n /**\n * Headers must be sent to the response\n */\n public headers: {[key: string]: any} = {};\n\n [key: string]: any;\n\n constructor(status: number = 500, message: string = \"\", origin?: Error | string | any) {\n super(message);\n\n this.status = status;\n this.message = message;\n this.name = getStatusConstant(status);\n\n this.setOrigin(origin);\n }\n\n setHeaders(headers: {[key: string]: any}) {\n this.headers = {\n ...this.headers,\n ...headers\n };\n\n return this;\n }\n\n setHeader(key: string, value: any) {\n this.headers[key] = value;\n\n return this;\n }\n\n setOrigin(origin: Error | string | any) {\n if (origin) {\n if (origin instanceof Error) {\n this.origin = origin;\n this.message = `${this.message}, innerException: ${this.origin.message}`.trim();\n } else if (typeof origin === \"string\") {\n this.origin = new Error(origin);\n this.message = `${this.message}, innerException: ${this.origin.message}`.trim();\n } else {\n this.body = origin;\n }\n }\n }\n\n toString() {\n return `${this.name}(${this.status}): ${this.message} `.trim();\n }\n}\n\nexport class HTTPException extends Exception {}\n"]}
@@ -0,0 +1,2 @@
1
+ export * from "./Exception";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC","sourcesContent":["export * from \"./Exception\";\n"]}
@@ -0,0 +1,5 @@
1
+ export * from "./core";
2
+ export * from "./clientErrors";
3
+ export * from "./redirections";
4
+ export * from "./serverErrors";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC","sourcesContent":["export * from \"./core\";\nexport * from \"./clientErrors\";\nexport * from \"./redirections\";\nexport * from \"./serverErrors\";\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class MovedPermanently extends Exception {
3
+ constructor(message, origin) {
4
+ super(MovedPermanently.STATUS, message, origin);
5
+ }
6
+ }
7
+ MovedPermanently.STATUS = 301;
8
+ //# sourceMappingURL=MovedPermanently.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MovedPermanently.js","sourceRoot":"","sources":["../../../src/redirections/MovedPermanently.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAG7C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAClD,CAAC;;AAJe,uBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class MovedPermanently extends Exception {\n static readonly STATUS = 301;\n\n constructor(message: string, origin?: Error | string | any) {\n super(MovedPermanently.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,9 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class MovedTemporarily extends Exception {
3
+ constructor(message, origin) {
4
+ super(MovedTemporarily.STATUS, message, origin);
5
+ this.name = "MOVED_TEMPORARILY";
6
+ }
7
+ }
8
+ MovedTemporarily.STATUS = 302;
9
+ //# sourceMappingURL=MovedTemporarily.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MovedTemporarily.js","sourceRoot":"","sources":["../../../src/redirections/MovedTemporarily.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAI7C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAHlD,SAAI,GAAW,mBAAmB,CAAC;IAInC,CAAC;;AALe,uBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class MovedTemporarily extends Exception {\n static readonly STATUS = 302;\n name: string = \"MOVED_TEMPORARILY\";\n\n constructor(message: string, origin?: Error | string | any) {\n super(MovedTemporarily.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class MultipleChoices extends Exception {
3
+ constructor(message, origin) {
4
+ super(MultipleChoices.STATUS, message, origin);
5
+ }
6
+ }
7
+ MultipleChoices.STATUS = 300;
8
+ //# sourceMappingURL=MultipleChoices.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MultipleChoices.js","sourceRoot":"","sources":["../../../src/redirections/MultipleChoices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAG5C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;;AAJe,sBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class MultipleChoices extends Exception {\n static readonly STATUS = 300;\n\n constructor(message: string, origin?: Error | string | any) {\n super(MultipleChoices.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class NotModified extends Exception {
3
+ constructor(message, origin) {
4
+ super(NotModified.STATUS, message, origin);
5
+ }
6
+ }
7
+ NotModified.STATUS = 304;
8
+ //# sourceMappingURL=NotModified.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotModified.js","sourceRoot":"","sources":["../../../src/redirections/NotModified.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,WAAY,SAAQ,SAAS;IAGxC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC7C,CAAC;;AAJe,kBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class NotModified extends Exception {\n static readonly STATUS = 304;\n\n constructor(message: string, origin?: Error | string | any) {\n super(NotModified.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class PermanentRedirect extends Exception {
3
+ constructor(message, origin) {
4
+ super(PermanentRedirect.STATUS, message, origin);
5
+ }
6
+ }
7
+ PermanentRedirect.STATUS = 308;
8
+ //# sourceMappingURL=PermanentRedirect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PermanentRedirect.js","sourceRoot":"","sources":["../../../src/redirections/PermanentRedirect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAG9C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;;AAJe,wBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class PermanentRedirect extends Exception {\n static readonly STATUS = 308;\n\n constructor(message: string, origin?: Error | string | any) {\n super(PermanentRedirect.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class SeeOther extends Exception {
3
+ constructor(message, origin) {
4
+ super(SeeOther.STATUS, message, origin);
5
+ }
6
+ }
7
+ SeeOther.STATUS = 303;
8
+ //# sourceMappingURL=SeeOther.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeeOther.js","sourceRoot":"","sources":["../../../src/redirections/SeeOther.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,QAAS,SAAQ,SAAS;IAGrC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC;;AAJe,eAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class SeeOther extends Exception {\n static readonly STATUS = 303;\n\n constructor(message: string, origin?: Error | string | any) {\n super(SeeOther.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class TemporaryRedirect extends Exception {
3
+ constructor(message, origin) {
4
+ super(TemporaryRedirect.STATUS, message, origin);
5
+ }
6
+ }
7
+ TemporaryRedirect.STATUS = 307;
8
+ //# sourceMappingURL=TemporaryRedirect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TemporaryRedirect.js","sourceRoot":"","sources":["../../../src/redirections/TemporaryRedirect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAG9C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;;AAJe,wBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class TemporaryRedirect extends Exception {\n static readonly STATUS = 307;\n\n constructor(message: string, origin?: Error | string | any) {\n super(TemporaryRedirect.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class TooManyRedirects extends Exception {
3
+ constructor(message, origin) {
4
+ super(TooManyRedirects.STATUS, message, origin);
5
+ }
6
+ }
7
+ TooManyRedirects.STATUS = 310;
8
+ //# sourceMappingURL=TooManyRedirects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TooManyRedirects.js","sourceRoot":"","sources":["../../../src/redirections/TooManyRedirects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAG7C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAClD,CAAC;;AAJe,uBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class TooManyRedirects extends Exception {\n static readonly STATUS = 310;\n\n constructor(message: string, origin?: Error | string | any) {\n super(TooManyRedirects.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Exception } from "../core/Exception";
2
+ export class UseProxy extends Exception {
3
+ constructor(message, origin) {
4
+ super(UseProxy.STATUS, message, origin);
5
+ }
6
+ }
7
+ UseProxy.STATUS = 305;
8
+ //# sourceMappingURL=UseProxy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UseProxy.js","sourceRoot":"","sources":["../../../src/redirections/UseProxy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,QAAS,SAAQ,SAAS;IAGrC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC;;AAJe,eAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class UseProxy extends Exception {\n static readonly STATUS = 305;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UseProxy.STATUS, message, origin);\n }\n}\n"]}
@@ -0,0 +1,10 @@
1
+ export * from "./MovedPermanently";
2
+ export * from "./MovedTemporarily";
3
+ export * from "./MultipleChoices";
4
+ export * from "./NotModified";
5
+ export * from "./PermanentRedirect";
6
+ export * from "./SeeOther";
7
+ export * from "./TemporaryRedirect";
8
+ export * from "./TooManyRedirects";
9
+ export * from "./UseProxy";
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/redirections/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC","sourcesContent":["export * from \"./MovedPermanently\";\nexport * from \"./MovedTemporarily\";\nexport * from \"./MultipleChoices\";\nexport * from \"./NotModified\";\nexport * from \"./PermanentRedirect\";\nexport * from \"./SeeOther\";\nexport * from \"./TemporaryRedirect\";\nexport * from \"./TooManyRedirects\";\nexport * from \"./UseProxy\";\n"]}