1.0.1 • Published 2 years ago

httpknowledge v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

HttpKnowledge

A collection of HTTP Knowledge Utils for external projects

Changelog

  • * Fix sutils
  • + Added codeJson to main function
codes(CODENUMBER, true) // returns a string with the meaning of the code number. (true = return json)
// {
//     code: 200,
//     msg: "OK"
// }
  • + Added overwrite message
codes(CODENUMBER, true, "not found in database") // returns a string with the meaning of the code number. (true = return json)
// {
//     code: CODENUMBER,
//     msg: "not found in database"
// }

Codes implemented

  • 200
  • 201
  • 204
  • 301
  • 307
  • 308
  • 400
  • 401
  • 403
  • 404
  • 405
  • 410
  • 429
  • 500
  • 501
  • 502
  • 503
  • 504

Instalation

yarn add httpknowledge
OR
npm install httpknowledge

Usage

const codes = require("httpknowledge")

codes(CODENUMBER) // returns a string with the meaning of the code number.

Credits

Copyright (c) DaniPlayzDev. All Rights Reserved. Email: dplayzdev@engineer.com Discord: MTOP DaniPlayz#6112