Skip to content

Instantly share code, notes, and snippets.

@TomHumphries
Created November 16, 2022 09:08
Show Gist options
  • Select an option

  • Save TomHumphries/b73c07d054c0ad410620e6cd3656e7bf to your computer and use it in GitHub Desktop.

Select an option

Save TomHumphries/b73c07d054c0ad410620e6cd3656e7bf to your computer and use it in GitHub Desktop.
HTTP Codes
export const HttpCodes = {
continue: 100,
switchingProtocols: 101,
earlyHints: 103,
ok: 200,
created: 201,
accepted: 202,
nonAuthoritativeInformation: 203,
noContent: 204,
resetContent: 205,
partialContent: 206,
multipleChoices: 300,
movedPermanently: 301,
found: 302,
seeOther: 303,
notModified: 304,
temporaryRedirect: 307,
permanentRedirect: 308,
badRequest: 400,
unauthorized: 401,
paymentRequired: 402,
forbidden: 403,
notFound: 404,
methodNotAllowed: 405,
notAcceptable: 406,
proxyAuthenticationRequired: 407,
requestTimeout: 408,
conflict: 409,
gone: 410,
lengthRequired: 411,
preconditionFailed: 412,
payloadTooLarge: 413,
uriTooLong: 414,
unsupportedMediaType: 415,
rangeNotSatisfiable: 416,
expectationFailed: 417,
imATeapot: 418,
tooEarly: 425,
upgradeRequired: 426,
tooManyRequests: 429,
internalServerError: 500,
notImplemented: 501,
badGateway: 502,
serviceUnavailable: 503,
gatewayTimeout: 504,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment