httpknowledge
v1.0.1
Published
A collection of HTTP Knowledge Utils for external projects
Downloads
3
Maintainers
Readme
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: [email protected] Discord: MTOP DaniPlayz#6112