errors:从restify提取的HttpErrors和RestErrors

时间:2024-05-27 15:27:47
【文件属性】:
文件名称:errors:从restify提取的HttpErrors和RestErrors
文件大小:31KB
文件格式:ZIP
更新时间:2024-05-27 15:27:47
JavaScript 重新纠正错误 HTTP和REST错误构造函数的集合。 该模块附带了一组构造函数,可用于使用默认状态代码来更新Error对象。 该模块附带以下HttpErrors: 400 BadRequestError 401 UnauthorizedError 402 PaymentRequiredError 403 ForbiddenError 404 NotFoundError 405 MethodNotAllowedError 406 NotAcceptableError 407 ProxyAuthenticationRequiredError 408 RequestTimeoutError 409 ConflictError 410 GoneError 411 LengthRequiredError 412 PreconditionFailedError 413
【文件预览】:
errors-master
----.gitignore(235B)
----.eslintrc(8KB)
----package.json(1KB)
----Makefile(3KB)
----.travis.yml(220B)
----LICENSE(1KB)
----CHANGELOG.md(685B)
----tools()
--------githooks()
----README.md(16KB)
----lib()
--------serializer.js(8KB)
--------helpers.js(4KB)
--------index.js(3KB)
--------httpErrors.js(3KB)
--------baseClasses()
--------makeConstructor.js(2KB)
--------restErrors.js(3KB)
----CHANGES.md(2KB)
----test()
--------.eslintrc(138B)
--------index.js(36KB)

网友评论