@@ -150,13 +150,6 @@ E('ERR_ENCODING_INVALID_ENCODED_DATA',
150
150
E ( 'ERR_ENCODING_NOT_SUPPORTED' ,
151
151
( enc ) => `The "${ enc } " encoding is not supported` ) ;
152
152
E ( 'ERR_FALSY_VALUE_REJECTION' , 'Promise was rejected with falsy value' ) ;
153
- E ( 'ERR_HTTP_HEADERS_SENT' ,
154
- 'Cannot render headers after they are sent to the client' ) ;
155
- E ( 'ERR_HTTP_INVALID_CHAR' , 'Invalid character in statusMessage.' ) ;
156
- E ( 'ERR_HTTP_INVALID_STATUS_CODE' ,
157
- ( originalStatusCode ) => `Invalid status code: ${ originalStatusCode } ` ) ;
158
- E ( 'ERR_HTTP_TRAILER_INVALID' ,
159
- 'Trailers are invalid with this transfer encoding' ) ;
160
153
E ( 'ERR_HTTP2_CONNECT_AUTHORITY' ,
161
154
':authority header is required for CONNECT requests' ) ;
162
155
E ( 'ERR_HTTP2_CONNECT_PATH' ,
@@ -171,14 +164,14 @@ E('ERR_HTTP2_FRAME_ERROR',
171
164
msg += ` with code ${ code } ` ;
172
165
return msg ;
173
166
} ) ;
174
- E ( 'ERR_HTTP2_HEADER_REQUIRED' ,
175
- ( name ) => `The ${ name } header is required` ) ;
176
- E ( 'ERR_HTTP2_HEADER_SINGLE_VALUE' ,
177
- ( name ) => `Header field "${ name } " must have only a single value` ) ;
178
167
E ( 'ERR_HTTP2_HEADERS_AFTER_RESPOND' ,
179
168
'Cannot specify additional headers after response initiated' ) ;
180
169
E ( 'ERR_HTTP2_HEADERS_OBJECT' , 'Headers must be an object' ) ;
181
170
E ( 'ERR_HTTP2_HEADERS_SENT' , 'Response has already been initiated.' ) ;
171
+ E ( 'ERR_HTTP2_HEADER_REQUIRED' ,
172
+ ( name ) => `The ${ name } header is required` ) ;
173
+ E ( 'ERR_HTTP2_HEADER_SINGLE_VALUE' ,
174
+ ( name ) => `Header field "${ name } " must have only a single value` ) ;
182
175
E ( 'ERR_HTTP2_INFO_HEADERS_AFTER_RESPOND' ,
183
176
'Cannot send informational headers after the HTTP message has been sent' ) ;
184
177
E ( 'ERR_HTTP2_INFO_STATUS_NOT_ALLOWED' ,
@@ -221,6 +214,13 @@ E('ERR_HTTP2_STREAM_ERROR',
221
214
E ( 'ERR_HTTP2_STREAM_SELF_DEPENDENCY' , 'A stream cannot depend on itself' ) ;
222
215
E ( 'ERR_HTTP2_UNSUPPORTED_PROTOCOL' ,
223
216
( protocol ) => `protocol "${ protocol } " is unsupported.` ) ;
217
+ E ( 'ERR_HTTP_HEADERS_SENT' ,
218
+ 'Cannot render headers after they are sent to the client' ) ;
219
+ E ( 'ERR_HTTP_INVALID_CHAR' , 'Invalid character in statusMessage.' ) ;
220
+ E ( 'ERR_HTTP_INVALID_STATUS_CODE' ,
221
+ ( originalStatusCode ) => `Invalid status code: ${ originalStatusCode } ` ) ;
222
+ E ( 'ERR_HTTP_TRAILER_INVALID' ,
223
+ 'Trailers are invalid with this transfer encoding' ) ;
224
224
E ( 'ERR_INDEX_OUT_OF_RANGE' , 'Index out of range' ) ;
225
225
E ( 'ERR_INVALID_ARG_TYPE' , invalidArgType ) ;
226
226
E ( 'ERR_INVALID_ARRAY_LENGTH' ,
0 commit comments