@@ -33,7 +33,7 @@ my %StatusCode = (
33
33
207 => ' Multi-Status' , # RFC 4918: WebDAV
34
34
208 => ' Already Reported' , # RFC 5842: WebDAV bindings
35
35
# 209 .. 225
36
- 226 => ' IM used ' , # RFC 3229: Delta encoding
36
+ 226 => ' IM Used ' , # RFC 3229: Delta encoding
37
37
# 227 .. 299
38
38
300 => ' Multiple Choices' ,
39
39
301 => ' Moved Permanently' ,
@@ -57,10 +57,10 @@ my %StatusCode = (
57
57
410 => ' Gone' ,
58
58
411 => ' Length Required' ,
59
59
412 => ' Precondition Failed' , # RFC 7232: Conditional Request
60
- 413 => ' Request Entity Too Large' ,
61
- 414 => ' Request- URI Too Large ' ,
60
+ 413 => ' Payload Too Large' ,
61
+ 414 => ' URI Too Long ' ,
62
62
415 => ' Unsupported Media Type' ,
63
- 416 => ' Request Range Not Satisfiable' , # RFC 7233: Range Requests
63
+ 416 => ' Range Not Satisfiable' , # RFC 7233: Range Requests
64
64
417 => ' Expectation Failed' ,
65
65
# 418 .. 420
66
66
421 => ' Misdirected Request' , # RFC 7540: HTTP/2
@@ -118,9 +118,30 @@ die if $@;
118
118
*RC_MOVED_TEMPORARILY = \&RC_FOUND; # 302 was renamed in the standard
119
119
push (@EXPORT , " RC_MOVED_TEMPORARILY" );
120
120
121
+ *RC_REQUEST_ENTITY_TOO_LARGE = \&RC_PAYLOAD_TOO_LARGE;
122
+ push (@EXPORT , " RC_REQUEST_ENTITY_TOO_LARGE" );
123
+
124
+ *RC_REQUEST_URI_TOO_LARGE = \&RC_URI_TOO_LONG;
125
+ push (@EXPORT , " RC_REQUEST_URI_TOO_LARGE" );
126
+
127
+ *RC_REQUEST_RANGE_NOT_SATISFIABLE = \&RC_RANGE_NOT_SATISFIABLE;
128
+ push (@EXPORT , " RC_REQUEST_RANGE_NOT_SATISFIABLE" );
129
+
121
130
*RC_NO_CODE = \&RC_UNORDERED_COLLECTION;
122
131
push (@EXPORT , " RC_NO_CODE" );
123
132
133
+ *HTTP_REQUEST_ENTITY_TOO_LARGE = \&HTTP_PAYLOAD_TOO_LARGE;
134
+ push (@EXPORT_OK , " HTTP_REQUEST_ENTITY_TOO_LARGE" );
135
+
136
+ *HTTP_REQUEST_URI_TOO_LARGE = \&HTTP_URI_TOO_LONG;
137
+ push (@EXPORT_OK , " HTTP_REQUEST_URI_TOO_LARGE" );
138
+
139
+ *HTTP_REQUEST_RANGE_NOT_SATISFIABLE = \&HTTP_RANGE_NOT_SATISFIABLE;
140
+ push (@EXPORT_OK , " HTTP_REQUEST_RANGE_NOT_SATISFIABLE" );
141
+
142
+ *HTTP_NO_CODE = \&HTTP_UNORDERED_COLLECTION;
143
+ push (@EXPORT_OK , " HTTP_NO_CODE" );
144
+
124
145
our %EXPORT_TAGS = (
125
146
constants => [grep /^HTTP_/, @EXPORT_OK ],
126
147
is => [grep /^is_/, @EXPORT , @EXPORT_OK ],
@@ -221,10 +242,10 @@ tag to import them all.
221
242
HTTP_GONE (410)
222
243
HTTP_LENGTH_REQUIRED (411)
223
244
HTTP_PRECONDITION_FAILED (412)
224
- HTTP_REQUEST_ENTITY_TOO_LARGE (413)
225
- HTTP_REQUEST_URI_TOO_LARGE (414)
245
+ HTTP_PAYLOAD_TOO_LARGE (413)
246
+ HTTP_URI_TOO_LONG (414)
226
247
HTTP_UNSUPPORTED_MEDIA_TYPE (415)
227
- HTTP_REQUEST_RANGE_NOT_SATISFIABLE (416)
248
+ HTTP_RANGE_NOT_SATISFIABLE (416)
228
249
HTTP_EXPECTATION_FAILED (417)
229
250
HTTP_MISDIRECTED REQUEST (421)
230
251
HTTP_UNPROCESSABLE_ENTITY (422)
0 commit comments