@36node/http-status 中文文档教程

发布于 4年前 浏览 19 项目主页 更新于 3年前

http-status

提供最有用的 http 状态。

  ExtendableError,
  Forbindden,
  Gone,
  InternalError,
  InvalidRequest,
  NotAcceptable,
  NotFound,
  Unauthorized,
  UnprocessableEntity,

Install

yarn add http-status

Usage

import { Forbindden } from "@36node/http-status";

throw new Forbidden();

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

http-status © 36node,根据 MIT 许可证。

在贡献者 (list) 的帮助下由 36node 创作和维护。

github.com/zzswang · GitHub @36node

http-status

Provides most useful http status.

  ExtendableError,
  Forbindden,
  Gone,
  InternalError,
  InvalidRequest,
  NotAcceptable,
  NotFound,
  Unauthorized,
  UnprocessableEntity,

Install

yarn add http-status

Usage

import { Forbindden } from "@36node/http-status";

throw new Forbidden();

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

http-status © 36node, Released under the MIT License.

Authored and maintained by 36node with help from contributors (list).

github.com/zzswang · GitHub @36node

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文