definitions.tsx 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // https://httpwg.org/specs/rfc9110.html#overview.of.status.codes
  2. import {t} from 'sentry/locale';
  3. export const HTTP_RESPONSE_STATUS_CODES = {
  4. '100': t('Continue'),
  5. '101': t('Switching Protocols'),
  6. '102': t('Processing'),
  7. '103': t('Early Hints'),
  8. '200': t('OK'),
  9. '201': t('Created'),
  10. '202': t('Accepted'),
  11. '203': t('Non-Authoritative Information'),
  12. '204': t('No Content'),
  13. '205': t('Reset Content'),
  14. '206': t('Partial Content'),
  15. '207': t('Multi-Status'),
  16. '208': t('Already Reported'),
  17. '226': t('IM Used'),
  18. '300': t('Multiple Choices'),
  19. '301': t('Moved Permanently'),
  20. '302': t('Found'),
  21. '303': t('See Other'),
  22. '304': t('Not Modified'),
  23. '305': t('Use Proxy'),
  24. '307': t('Temporary Redirect'),
  25. '308': t('Permanent Redirect'),
  26. '400': t('Bad Request'),
  27. '401': t('Unauthorized'),
  28. '402': t('Payment Required'),
  29. '403': t('Forbidden'),
  30. '404': t('Not Found'),
  31. '405': t('Method Not Allowed'),
  32. '406': t('Not Acceptable'),
  33. '407': t('Proxy Authentication Required'),
  34. '408': t('Request Timeout'),
  35. '409': t('Conflict'),
  36. '410': t('Gone'),
  37. '411': t('Length Required'),
  38. '412': t('Precondition Failed'),
  39. '413': t('Payload Too Large'),
  40. '414': t('URI Too Long'),
  41. '415': t('Unsupported Media Type'),
  42. '416': t('Range Not Satisfiable'),
  43. '417': t('Expectation Failed'),
  44. '418': t('I’m a teapot'),
  45. '421': t('Misdirected Request'),
  46. '422': t('Unprocessable Content'),
  47. '423': t('Locked'),
  48. '424': t('Failed Dependency'),
  49. '425': t('Too Early'),
  50. '426': t('Upgrade Required'),
  51. '428': t('Precondition Required'),
  52. '429': t('Too Many Requests'),
  53. '431': t('Request Header Fields Too Large'),
  54. '451': t('Unavailable For Legal Reasons'),
  55. '500': t('Internal Server Error'),
  56. '501': t('Not Implemented'),
  57. '502': t('Bad Gateway'),
  58. '503': t('Service Unavailable'),
  59. '504': t('Gateway Timeout'),
  60. '505': t('HTTP Version Not Supported'),
  61. '506': t('Variant Also Negotiates'),
  62. '507': t('Insufficient Storage'),
  63. '508': t('Loop Detected'),
  64. '510': t('Not Extended'),
  65. '511': t('Network Authentication Required'),
  66. };