Skip to content

Instantly share code, notes, and snippets.

@AshishPandagre
Created October 17, 2022 12:54
Show Gist options
  • Save AshishPandagre/1bc5a821f77891c9879d5fdd3f4c2715 to your computer and use it in GitHub Desktop.
Save AshishPandagre/1bc5a821f77891c9879d5fdd3f4c2715 to your computer and use it in GitHub Desktop.
// 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