Created
October 17, 2022 12:54
-
-
Save AshishPandagre/1bc5a821f77891c9879d5fdd3f4c2715 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // some of the most commonly used status codes. | |
| const status_code = { | |
| 'OK': 200, | |
| 'CREATED': 201, | |
| 'NO_CONTENT': 204, | |
| 'NOT_MODIFIED': 304, | |
| 'BAD_REQUEST': 400, | |
| 'UNAUTHORIZED': 401, | |
| 'FORBIDDEN': 403, | |
| 'NOT_FOUND': 404, | |
| 'METHOD_NOT_ALLOWED': 405, | |
| 'NOT ACCEPTABLE': 406, | |
| 'UNSUPPORTED_MEDIA_TYPE': 415, | |
| 'INTERNAL_SERVICE_ERROR': 500, | |
| 'SERVICE_UNAVAILABLE': 503, | |
| 'GATEWAY_TIMEOUT': 504 | |
| } | |
| module.exports = status_code; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment