~ubuntu-branches/ubuntu/intrepid/ruby1.9/intrepid-updates

« back to all changes in this revision

Viewing changes to lib/webrick/httpstatus.rb

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-09-04 16:01:17 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070904160117-i15zckg2nhxe9fyw
Tags: 1.9.0+20070830-2ubuntu1
* Sync from Debian; remaining changes:
  - Add -g to CFLAGS.
* Fixes build failure on ia64.
* Fixes build failure with gcc-4.2 on lpia.
* Robustify check for target_os, fixing build failure on lpia.
* Set Ubuntu maintainer address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
    class EOFError < StandardError; end
24
24
 
25
25
    StatusMessage = {
26
 
      100, 'Continue',
27
 
      101, 'Switching Protocols',
28
 
      200, 'OK',
29
 
      201, 'Created',
30
 
      202, 'Accepted',
31
 
      203, 'Non-Authoritative Information',
32
 
      204, 'No Content',
33
 
      205, 'Reset Content',
34
 
      206, 'Partial Content',
35
 
      300, 'Multiple Choices',
36
 
      301, 'Moved Permanently',
37
 
      302, 'Found',
38
 
      303, 'See Other',
39
 
      304, 'Not Modified',
40
 
      305, 'Use Proxy',
41
 
      307, 'Temporary Redirect',
42
 
      400, 'Bad Request',
43
 
      401, 'Unauthorized',
44
 
      402, 'Payment Required',
45
 
      403, 'Forbidden',
46
 
      404, 'Not Found',
47
 
      405, 'Method Not Allowed',
48
 
      406, 'Not Acceptable',
49
 
      407, 'Proxy Authentication Required',
50
 
      408, 'Request Timeout',
51
 
      409, 'Conflict',
52
 
      410, 'Gone',
53
 
      411, 'Length Required',
54
 
      412, 'Precondition Failed',
55
 
      413, 'Request Entity Too Large',
56
 
      414, 'Request-URI Too Large',
57
 
      415, 'Unsupported Media Type',
58
 
      416, 'Request Range Not Satisfiable',
59
 
      417, 'Expectation Failed',
60
 
      500, 'Internal Server Error',
61
 
      501, 'Not Implemented',
62
 
      502, 'Bad Gateway',
63
 
      503, 'Service Unavailable',
64
 
      504, 'Gateway Timeout',
65
 
      505, 'HTTP Version Not Supported'
 
26
      100 => 'Continue',
 
27
      101 => 'Switching Protocols',
 
28
      200 => 'OK',
 
29
      201 => 'Created',
 
30
      202 => 'Accepted',
 
31
      203 => 'Non-Authoritative Information',
 
32
      204 => 'No Content',
 
33
      205 => 'Reset Content',
 
34
      206 => 'Partial Content',
 
35
      300 => 'Multiple Choices',
 
36
      301 => 'Moved Permanently',
 
37
      302 => 'Found',
 
38
      303 => 'See Other',
 
39
      304 => 'Not Modified',
 
40
      305 => 'Use Proxy',
 
41
      307 => 'Temporary Redirect',
 
42
      400 => 'Bad Request',
 
43
      401 => 'Unauthorized',
 
44
      402 => 'Payment Required',
 
45
      403 => 'Forbidden',
 
46
      404 => 'Not Found',
 
47
      405 => 'Method Not Allowed',
 
48
      406 => 'Not Acceptable',
 
49
      407 => 'Proxy Authentication Required',
 
50
      408 => 'Request Timeout',
 
51
      409 => 'Conflict',
 
52
      410 => 'Gone',
 
53
      411 => 'Length Required',
 
54
      412 => 'Precondition Failed',
 
55
      413 => 'Request Entity Too Large',
 
56
      414 => 'Request-URI Too Large',
 
57
      415 => 'Unsupported Media Type',
 
58
      416 => 'Request Range Not Satisfiable',
 
59
      417 => 'Expectation Failed',
 
60
      500 => 'Internal Server Error',
 
61
      501 => 'Not Implemented',
 
62
      502 => 'Bad Gateway',
 
63
      503 => 'Service Unavailable',
 
64
      504 => 'Gateway Timeout',
 
65
      505 => 'HTTP Version Not Supported'
66
66
    }
67
67
 
68
68
    CodeToError = {}