@@ -281,24 +281,18 @@ static int on_frame_recv(nghttp2_session *ngh2, const nghttp2_frame *frame,
281281 return NGHTTP2_ERR_CALLBACK_FAILURE ;
282282 }
283283 r = stream -> r ;
284- if (r -> status >= 100 && r -> status < 200 ) {
284+ if (ap_is_HTTP_INFO ( r -> status ) ) {
285285 /* By default, we will forward all interim responses when
286286 * we are sitting on a HTTP/2 connection to the client */
287287 int forward = session -> h2_front ;
288288 switch (r -> status ) {
289- case 100 :
289+ case HTTP_CONTINUE :
290290 if (stream -> waiting_on_100 ) {
291291 stream -> waiting_on_100 = 0 ;
292292 r -> status_line = ap_get_status_line (r -> status );
293293 forward = 1 ;
294294 }
295295 break ;
296- case 103 :
297- /* workaround until we get this into http protocol base
298- * parts. without this, unknown codes are converted to
299- * 500... */
300- r -> status_line = "103 Early Hints" ;
301- break ;
302296 default :
303297 r -> status_line = ap_get_status_line (r -> status );
304298 break ;
@@ -311,7 +305,7 @@ static int on_frame_recv(nghttp2_session *ngh2, const nghttp2_frame *frame,
311305 ap_send_interim_response (r , 1 );
312306 }
313307 }
314- else if (r -> status >= 400 ) {
308+ else if (r -> status >= HTTP_BAD_REQUEST ) {
315309 proxy_dir_conf * dconf ;
316310 dconf = ap_get_module_config (r -> per_dir_config , & proxy_module );
317311 if (ap_proxy_should_override (dconf , r -> status )) {
@@ -417,7 +411,7 @@ static apr_status_t h2_proxy_stream_add_header_out(h2_proxy_stream *stream,
417411 stream -> session -> id , stream -> id , s );
418412 stream -> r -> status = (int )apr_atoi64 (s );
419413 if (stream -> r -> status <= 0 ) {
420- stream -> r -> status = 500 ;
414+ stream -> r -> status = HTTP_INTERNAL_SERVER_ERROR ;
421415 return APR_EGENERAL ;
422416 }
423417 }
@@ -509,7 +503,7 @@ static void h2_proxy_stream_end_headers_out(h2_proxy_stream *stream)
509503 server_name , portstr )
510504 );
511505 }
512- if (r -> status >= 200 ) stream -> headers_ended = 1 ;
506+ if (r -> status >= HTTP_OK ) stream -> headers_ended = 1 ;
513507
514508 if (APLOGrtrace2 (stream -> r )) {
515509 ap_log_rerror (APLOG_MARK , APLOG_TRACE2 , 0 , stream -> r ,
0 commit comments