Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_responses.py 2.9KB

1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. # -*- test-case-name: twisted.web.test.test_http -*-
  2. # Copyright (c) Twisted Matrix Laboratories.
  3. # See LICENSE for details.
  4. """
  5. HTTP response code definitions.
  6. """
  7. _CONTINUE = 100
  8. SWITCHING = 101
  9. OK = 200
  10. CREATED = 201
  11. ACCEPTED = 202
  12. NON_AUTHORITATIVE_INFORMATION = 203
  13. NO_CONTENT = 204
  14. RESET_CONTENT = 205
  15. PARTIAL_CONTENT = 206
  16. MULTI_STATUS = 207
  17. MULTIPLE_CHOICE = 300
  18. MOVED_PERMANENTLY = 301
  19. FOUND = 302
  20. SEE_OTHER = 303
  21. NOT_MODIFIED = 304
  22. USE_PROXY = 305
  23. TEMPORARY_REDIRECT = 307
  24. PERMANENT_REDIRECT = 308
  25. BAD_REQUEST = 400
  26. UNAUTHORIZED = 401
  27. PAYMENT_REQUIRED = 402
  28. FORBIDDEN = 403
  29. NOT_FOUND = 404
  30. NOT_ALLOWED = 405
  31. NOT_ACCEPTABLE = 406
  32. PROXY_AUTH_REQUIRED = 407
  33. REQUEST_TIMEOUT = 408
  34. CONFLICT = 409
  35. GONE = 410
  36. LENGTH_REQUIRED = 411
  37. PRECONDITION_FAILED = 412
  38. REQUEST_ENTITY_TOO_LARGE = 413
  39. REQUEST_URI_TOO_LONG = 414
  40. UNSUPPORTED_MEDIA_TYPE = 415
  41. REQUESTED_RANGE_NOT_SATISFIABLE = 416
  42. EXPECTATION_FAILED = 417
  43. INTERNAL_SERVER_ERROR = 500
  44. NOT_IMPLEMENTED = 501
  45. BAD_GATEWAY = 502
  46. SERVICE_UNAVAILABLE = 503
  47. GATEWAY_TIMEOUT = 504
  48. HTTP_VERSION_NOT_SUPPORTED = 505
  49. INSUFFICIENT_STORAGE_SPACE = 507
  50. NOT_EXTENDED = 510
  51. RESPONSES = {
  52. # 100
  53. _CONTINUE: b"Continue",
  54. SWITCHING: b"Switching Protocols",
  55. # 200
  56. OK: b"OK",
  57. CREATED: b"Created",
  58. ACCEPTED: b"Accepted",
  59. NON_AUTHORITATIVE_INFORMATION: b"Non-Authoritative Information",
  60. NO_CONTENT: b"No Content",
  61. RESET_CONTENT: b"Reset Content.",
  62. PARTIAL_CONTENT: b"Partial Content",
  63. MULTI_STATUS: b"Multi-Status",
  64. # 300
  65. MULTIPLE_CHOICE: b"Multiple Choices",
  66. MOVED_PERMANENTLY: b"Moved Permanently",
  67. FOUND: b"Found",
  68. SEE_OTHER: b"See Other",
  69. NOT_MODIFIED: b"Not Modified",
  70. USE_PROXY: b"Use Proxy",
  71. # 306 not defined??
  72. TEMPORARY_REDIRECT: b"Temporary Redirect",
  73. PERMANENT_REDIRECT: b"Permanent Redirect",
  74. # 400
  75. BAD_REQUEST: b"Bad Request",
  76. UNAUTHORIZED: b"Unauthorized",
  77. PAYMENT_REQUIRED: b"Payment Required",
  78. FORBIDDEN: b"Forbidden",
  79. NOT_FOUND: b"Not Found",
  80. NOT_ALLOWED: b"Method Not Allowed",
  81. NOT_ACCEPTABLE: b"Not Acceptable",
  82. PROXY_AUTH_REQUIRED: b"Proxy Authentication Required",
  83. REQUEST_TIMEOUT: b"Request Time-out",
  84. CONFLICT: b"Conflict",
  85. GONE: b"Gone",
  86. LENGTH_REQUIRED: b"Length Required",
  87. PRECONDITION_FAILED: b"Precondition Failed",
  88. REQUEST_ENTITY_TOO_LARGE: b"Request Entity Too Large",
  89. REQUEST_URI_TOO_LONG: b"Request-URI Too Long",
  90. UNSUPPORTED_MEDIA_TYPE: b"Unsupported Media Type",
  91. REQUESTED_RANGE_NOT_SATISFIABLE: b"Requested Range not satisfiable",
  92. EXPECTATION_FAILED: b"Expectation Failed",
  93. # 500
  94. INTERNAL_SERVER_ERROR: b"Internal Server Error",
  95. NOT_IMPLEMENTED: b"Not Implemented",
  96. BAD_GATEWAY: b"Bad Gateway",
  97. SERVICE_UNAVAILABLE: b"Service Unavailable",
  98. GATEWAY_TIMEOUT: b"Gateway Time-out",
  99. HTTP_VERSION_NOT_SUPPORTED: b"HTTP Version not supported",
  100. INSUFFICIENT_STORAGE_SPACE: b"Insufficient Storage Space",
  101. NOT_EXTENDED: b"Not Extended",
  102. }