@@ -137,13 +137,6 @@ E('ERR_ENCODING_INVALID_ENCODED_DATA',
137137E ( 'ERR_ENCODING_NOT_SUPPORTED' ,
138138 ( enc ) => `The "${ enc } " encoding is not supported` ) ;
139139E ( 'ERR_FALSY_VALUE_REJECTION' , 'Promise was rejected with falsy value' ) ;
140- E ( 'ERR_HTTP_HEADERS_SENT' ,
141- 'Cannot %s headers after they are sent to the client' ) ;
142- E ( 'ERR_HTTP_INVALID_CHAR' , 'Invalid character in statusMessage.' ) ;
143- E ( 'ERR_HTTP_INVALID_STATUS_CODE' ,
144- ( originalStatusCode ) => `Invalid status code: ${ originalStatusCode } ` ) ;
145- E ( 'ERR_HTTP_TRAILER_INVALID' ,
146- 'Trailers are invalid with this transfer encoding' ) ;
147140E ( 'ERR_HTTP2_CONNECT_AUTHORITY' ,
148141 ':authority header is required for CONNECT requests' ) ;
149142E ( 'ERR_HTTP2_CONNECT_PATH' ,
@@ -158,14 +151,14 @@ E('ERR_HTTP2_FRAME_ERROR',
158151 msg += ` with code ${ code } ` ;
159152 return msg ;
160153 } ) ;
161- E ( 'ERR_HTTP2_HEADER_REQUIRED' ,
162- ( name ) => `The ${ name } header is required` ) ;
163- E ( 'ERR_HTTP2_HEADER_SINGLE_VALUE' ,
164- ( name ) => `Header field "${ name } " must have only a single value` ) ;
165154E ( 'ERR_HTTP2_HEADERS_AFTER_RESPOND' ,
166155 'Cannot specify additional headers after response initiated' ) ;
167156E ( 'ERR_HTTP2_HEADERS_OBJECT' , 'Headers must be an object' ) ;
168157E ( 'ERR_HTTP2_HEADERS_SENT' , 'Response has already been initiated.' ) ;
158+ E ( 'ERR_HTTP2_HEADER_REQUIRED' ,
159+ ( name ) => `The ${ name } header is required` ) ;
160+ E ( 'ERR_HTTP2_HEADER_SINGLE_VALUE' ,
161+ ( name ) => `Header field "${ name } " must have only a single value` ) ;
169162E ( 'ERR_HTTP2_INFO_HEADERS_AFTER_RESPOND' ,
170163 'Cannot send informational headers after the HTTP message has been sent' ) ;
171164E ( 'ERR_HTTP2_INFO_STATUS_NOT_ALLOWED' ,
@@ -204,6 +197,13 @@ E('ERR_HTTP2_STREAM_ERROR',
204197E ( 'ERR_HTTP2_STREAM_SELF_DEPENDENCY' , 'A stream cannot depend on itself' ) ;
205198E ( 'ERR_HTTP2_UNSUPPORTED_PROTOCOL' ,
206199 ( protocol ) => `protocol "${ protocol } " is unsupported.` ) ;
200+ E ( 'ERR_HTTP_HEADERS_SENT' ,
201+ 'Cannot %s headers after they are sent to the client' ) ;
202+ E ( 'ERR_HTTP_INVALID_CHAR' , 'Invalid character in statusMessage.' ) ;
203+ E ( 'ERR_HTTP_INVALID_STATUS_CODE' ,
204+ ( originalStatusCode ) => `Invalid status code: ${ originalStatusCode } ` ) ;
205+ E ( 'ERR_HTTP_TRAILER_INVALID' ,
206+ 'Trailers are invalid with this transfer encoding' ) ;
207207E ( 'ERR_INDEX_OUT_OF_RANGE' , 'Index out of range' ) ;
208208E ( 'ERR_INVALID_ARG_TYPE' , invalidArgType ) ;
209209E ( 'ERR_INVALID_ARRAY_LENGTH' ,
@@ -258,8 +258,8 @@ E('ERR_NAPI_CONS_PROTOTYPE_OBJECT', 'Constructor.prototype must be an object');
258258E ( 'ERR_NO_CRYPTO' , 'Node.js is not compiled with OpenSSL crypto support' ) ;
259259E ( 'ERR_NO_ICU' , '%s is not supported on Node.js compiled without ICU' ) ;
260260E ( 'ERR_NO_LONGER_SUPPORTED' , '%s is no longer supported' ) ;
261- E ( 'ERR_OUT_OF_RANGE' , 'The "%s" argument is out of range' ) ;
262261E ( 'ERR_OUTOFMEMORY' , 'Out of memory' ) ;
262+ E ( 'ERR_OUT_OF_RANGE' , 'The "%s" argument is out of range' ) ;
263263E ( 'ERR_PARSE_HISTORY_DATA' , 'Could not parse history data in %s' ) ;
264264E ( 'ERR_REQUIRE_ESM' , 'Must use import to load ES Module: %s' ) ;
265265E ( 'ERR_SERVER_ALREADY_LISTEN' ,
0 commit comments