methods.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. 'use strict'
  2. /*
  3. * node-res
  4. *
  5. * (c) Harminder Virk <virk@adonisjs.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. module.exports = {
  11. continue: 100,
  12. switchingProtocols: 101,
  13. ok: 200,
  14. created: 201,
  15. accepted: 202,
  16. nonAuthoritativeInformation: 203,
  17. noContent: 204,
  18. resetContent: 205,
  19. partialContent: 206,
  20. multipleChoices: 300,
  21. movedPermanently: 301,
  22. found: 302,
  23. seeOther: 303,
  24. notModified: 304,
  25. useProxy: 305,
  26. temporaryRedirect: 307,
  27. badRequest: 400,
  28. unauthorized: 401,
  29. paymentRequired: 402,
  30. forbidden: 403,
  31. notFound: 404,
  32. methodNotAllowed: 405,
  33. notAcceptable: 406,
  34. proxyAuthenticationRequired: 407,
  35. requestTimeout: 408,
  36. conflict: 409,
  37. gone: 410,
  38. lengthRequired: 411,
  39. preconditionFailed: 412,
  40. requestEntityTooLarge: 413,
  41. requestUriTooLong: 414,
  42. unsupportedMediaType: 415,
  43. requestedRangeNotSatisfiable: 416,
  44. expectationFailed: 417,
  45. unprocessableEntity: 422,
  46. tooManyRequests: 429,
  47. internalServerError: 500,
  48. notImplemented: 501,
  49. badGateway: 502,
  50. serviceUnavailable: 503,
  51. gatewayTimeout: 504,
  52. httpVersionNotSupported: 505
  53. }