Skip to content

Instantly share code, notes, and snippets.

@arshohag
Forked from minhajul-islam/API_STATUS
Created November 24, 2019 10:26
Show Gist options
  • Select an option

  • Save arshohag/cf9c5cc07268d3ec46d5b3829b3a6b45 to your computer and use it in GitHub Desktop.

Select an option

Save arshohag/cf9c5cc07268d3ec46d5b3829b3a6b45 to your computer and use it in GitHub Desktop.
List of HTTP status codes
export const API_STATUS = {
//1×× Informational
AS_100: {'CODE':100,'DES': 'Continue'},
AS_101: {'CODE':101,'DES': 'Switching Protocols'},
AS_102: {'CODE':102,'DES': 'Processing'},
//2×× Success
AS_200: {'CODE':200,'DES': 'OK'},
AS_201: {'CODE':201,'DES': 'Created'},
AS_202: {'CODE':202,'DES': 'Accepted'},
AS_203: {'CODE':203,'DES': 'Non-authoritative Information'},
AS_204: {'CODE':204,'DES': 'No Content'},
AS_205: {'CODE':205,'DES': 'Reset Content'},
AS_206: {'CODE':206,'DES': 'Partial Content'},
AS_207: {'CODE':207,'DES': 'Multi-Status'},
AS_208: {'CODE':208,'DES': 'Already Reported'},
AS_226: {'CODE':208,'DES': 'IM Used'},
//3×× Redirection
AS_300: {'CODE':300,'DES': 'Multiple Choices'},
AS_301: {'CODE':301,'DES': 'Moved Permanently'},
AS_302: {'CODE':302,'DES': 'Found'},
AS_303: {'CODE':303,'DES': 'See Other'},
AS_304: {'CODE':304,'DES': 'Not Modified'},
AS_305: {'CODE':305,'DES': 'Use Proxy'},
AS_307: {'CODE':307,'DES': 'Temporary Redirect'},
AS_308: {'CODE':308,'DES': 'Permanent Redirect'},
//4×× Client Error
AS_400: {'CODE':400,'DES': 'Bad Request'},
AS_401: {'CODE':401,'DES': 'Unauthorized'},
AS_402: {'CODE':402,'DES': 'Payment Required'},
AS_403: {'CODE':403,'DES': 'Forbidden'},
AS_404: {'CODE':404,'DES': 'Not Found'},
AS_405: {'CODE':405,'DES': 'Method Not Allowed'},
AS_406: {'CODE':406,'DES': 'Not Acceptable'},
AS_407: {'CODE':407,'DES': 'Proxy Authentication Required'},
AS_408: {'CODE':408,'DES': 'Request Timeout'},
AS_409: {'CODE':409,'DES': 'Conflict'},
AS_410: {'CODE':410,'DES': 'Gone'},
AS_411: {'CODE':411,'DES': 'Length Required'},
AS_412: {'CODE':412,'DES': 'Precondition Failed'},
AS_413: {'CODE':413,'DES': 'Payload Too Large'},
AS_414: {'CODE':414,'DES': 'Request-URI Too Long'},
AS_415: {'CODE':415,'DES': 'Unsupported Media Type'},
AS_416: {'CODE':416,'DES': 'Requested Range Not Satisfiable'},
AS_417: {'CODE':417,'DES': 'Expectation Failed'},
AS_418: {'CODE':418,'DES': 'I’m a teapot'},
AS_422: {'CODE':422,'DES': 'Misdirected Request'},
AS_423: {'CODE':423,'DES': 'Locked'},
AS_424: {'CODE':424,'DES': 'Failed Dependency'},
AS_426: {'CODE':426,'DES': 'Upgrade Required'},
AS_428: {'CODE':428,'DES': 'Precondition Required'},
AS_429: {'CODE':429,'DES': 'Too Many Requests'},
AS_431: {'CODE':431,'DES': 'Request Header Fields Too Large'},
AS_444: {'CODE':444,'DES': 'Connection Closed Without Response'},
AS_451: {'CODE':451,'DES': 'Unavailable For Legal Reasons'},
AS_499: {'CODE':499,'DES': 'Client Closed Request'},
// 5×× Server Error
AS_500: {'CODE':500,'DES': 'Internal Server Error'},
AS_501: {'CODE':501,'DES': 'Not Implemented'},
AS_503: {'CODE':503,'DES': 'Service Unavailable'},
AS_504: {'CODE':504,'DES': 'Gateway Timeout'},
AS_505: {'CODE':505,'DES': 'HTTP Version Not Supported'},
AS_506: {'CODE':506,'DES': 'Variant Also Negotiates'},
AS_507: {'CODE':507,'DES': 'Insufficient Storage'},
AS_508: {'CODE':508,'DES': 'Loop Detected'},
AS_510: {'CODE':510,'DES': 'Not Extended'},
AS_511: {'CODE':511,'DES': 'Network Authentication Required'},
AS_599: {'CODE':599,'DES': 'Network Connect Timeout Error'},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment