File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -676,6 +676,12 @@ be used.</p>
676
676
<li ><a name =" tls_alert_received_payload.alert_id " ><code >alert-ID</code ></a >: <code >u8</code ></li >
677
677
<li ><a name =" tls_alert_received_payload.alert_message " ><code >alert-message</code ></a >: <code >string</code ></li >
678
678
</ul >
679
+ <h4 ><a name =" http_request_error_payload " ><code >record HTTP-request-error-payload</code ></a ></h4 >
680
+ <h5 >Record Fields</h5 >
681
+ <ul >
682
+ <li ><a name =" http_request_error_payload.status_code " ><a href =" #status_code " ><code >status-code</code ></a ></a >: <code >u16</code ></li >
683
+ <li ><a name =" http_request_error_payload.status_phrase " ><code >status-phrase</code ></a >: <code >string</code ></li >
684
+ </ul >
679
685
<h4 ><a name =" dns_error_payload " ><code >record DNS-error-payload</code ></a ></h4 >
680
686
<h5 >Record Fields</h5 >
681
687
<ul >
@@ -700,6 +706,7 @@ be used.</p>
700
706
<li ><a name =" error.tls_protocol_error " ><code >TLS-protocol-error</code ></a ></li >
701
707
<li ><a name =" error.tls_certificate_error " ><code >TLS-certificate-error</code ></a ></li >
702
708
<li ><a name =" error.tls_alert_received " ><code >TLS-alert-received</code ></a >: <a href =" #tls_alert_received_payload " ><a href =" #tls_alert_received_payload " ><code >TLS-alert-received-payload</code ></a ></a ></li >
709
+ <li ><a name =" error.http_request_error " ><code >HTTP-request-error</code ></a >: <a href =" #http_request_error_payload " ><a href =" #http_request_error_payload " ><code >HTTP-request-error-payload</code ></a ></a ></li >
703
710
<li ><a name =" error.http_request_denied " ><code >HTTP-request-denied</code ></a ></li >
704
711
<li ><a name =" error.http_response_incomplete " ><code >HTTP-response-incomplete</code ></a ></li >
705
712
<li ><a name =" error.http_response_header_section_size " ><code >HTTP-response-header-section-size</code ></a >: <code >u32</code ></li >
Original file line number Diff line number Diff line change @@ -28,8 +28,6 @@ interface types {
28
28
29
29
// The cases of this variant correspond to the IANA HTTP Proxy Error Types:
30
30
// https://www.iana.org/assignments/http-proxy-status/http-proxy-status.xhtml#table-http-proxy-error-types
31
- // Note: the `http_request_error` case maps to an `ok` response with a 4xx
32
- // `status-code`.
33
31
variant error {
34
32
DNS-timeout ,
35
33
DNS-error (DNS-error-payload ),
@@ -46,6 +44,7 @@ interface types {
46
44
TLS-protocol-error ,
47
45
TLS-certificate-error ,
48
46
TLS-alert-received (TLS-alert-received-payload ),
47
+ HTTP-request-error (HTTP-request-error-payload ),
49
48
HTTP-request-denied ,
50
49
HTTP-response-incomplete ,
51
50
HTTP-response-header-section-size (u32 ),
@@ -76,6 +75,12 @@ interface types {
76
75
alert-message : string
77
76
}
78
77
78
+ // Defines the case payload type for `HTTP-request-error` above:
79
+ record HTTP-request-error-payload {
80
+ status-code : u16 ,
81
+ status-phrase : string
82
+ }
83
+
79
84
// Defines the case payload type for `HTTP-response-{header,trailer}-size` above:
80
85
record field-size-payload {
81
86
field-name : string ,
You can’t perform that action at this time.
0 commit comments