| Code Coverage: vinyl-cache/bin/vinyltest/vtest2/src/tbl/h2_error.h |
| |
| 82217aa4fc7094b3610340078afaf78cd95a8ec9 |
| |
| 0 |
|
/*- |
| 1 |
|
* Copyright (c) 2016-2021 Varnish Software AS |
| 2 |
|
* All rights reserved. |
| 3 |
|
* |
| 4 |
|
* Author: Poul-Henning Kamp <phk@phk.freebsd.dk> |
| 5 |
|
* |
| 6 |
|
* SPDX-License-Identifier: BSD-2-Clause |
| 7 |
|
* |
| 8 |
|
* Redistribution and use in source and binary forms, with or without |
| 9 |
|
* modification, are permitted provided that the following conditions |
| 10 |
|
* are met: |
| 11 |
|
* 1. Redistributions of source code must retain the above copyright |
| 12 |
|
* notice, this list of conditions and the following disclaimer. |
| 13 |
|
* 2. Redistributions in binary form must reproduce the above copyright |
| 14 |
|
* notice, this list of conditions and the following disclaimer in the |
| 15 |
|
* documentation and/or other materials provided with the distribution. |
| 16 |
|
* |
| 17 |
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND |
| 18 |
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 19 |
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 20 |
|
* ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE |
| 21 |
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 22 |
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
| 23 |
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 24 |
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
| 25 |
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 26 |
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 27 |
|
* SUCH DAMAGE. |
| 28 |
|
* |
| 29 |
|
* RFC7540 section 11.4 |
| 30 |
|
* |
| 31 |
|
* Types: conn=1|stream=2 |
| 32 |
|
* Reason: stream_close_t |
| 33 |
|
*/ |
| 34 |
|
|
| 35 |
|
/*lint -save -e525 -e539 */ |
| 36 |
|
|
| 37 |
1018 |
H2_ERROR( |
| 38 |
780 |
/* name */ NO_ERROR, |
| 39 |
780 |
/* val */ 0, |
| 40 |
780 |
/* types */ 3, |
| 41 |
780 |
/* goaway */ 1, |
| 42 |
780 |
/* reason */ SC_REM_CLOSE, |
| 43 |
780 |
/* descr */ "Graceful shutdown" |
| 44 |
780 |
) |
| 45 |
|
|
| 46 |
773 |
H2_ERROR( |
| 47 |
773 |
/* name */ PROTOCOL_ERROR, |
| 48 |
773 |
/* val */ 1, |
| 49 |
773 |
/* types */ 3, |
| 50 |
773 |
/* goaway */ 1, |
| 51 |
773 |
/* reason */ SC_RX_JUNK, |
| 52 |
773 |
/* descr */ "Protocol error detected" |
| 53 |
773 |
) |
| 54 |
|
|
| 55 |
730 |
H2_ERROR( |
| 56 |
730 |
/* name */ INTERNAL_ERROR, |
| 57 |
730 |
/* val */ 2, |
| 58 |
730 |
/* types */ 3, |
| 59 |
730 |
/* goaway */ 1, |
| 60 |
730 |
/* reason */ SC_VCL_FAILURE, |
| 61 |
730 |
/* descr */ "Implementation fault" |
| 62 |
730 |
) |
| 63 |
|
|
| 64 |
727 |
H2_ERROR( |
| 65 |
727 |
/* name */ FLOW_CONTROL_ERROR, |
| 66 |
727 |
/* val */ 3, |
| 67 |
727 |
/* types */ 3, |
| 68 |
727 |
/* goaway */ 1, |
| 69 |
727 |
/* reason */ SC_OVERLOAD, |
| 70 |
727 |
/* descr */ "Flow-control limits exceeded" |
| 71 |
727 |
) |
| 72 |
|
|
| 73 |
724 |
H2_ERROR( |
| 74 |
724 |
/* name */ SETTINGS_TIMEOUT, |
| 75 |
724 |
/* val */ 4, |
| 76 |
724 |
/* types */ 1, |
| 77 |
724 |
/* goaway */ 1, |
| 78 |
724 |
/* reason */ SC_RX_TIMEOUT, |
| 79 |
724 |
/* descr */ "Settings not acknowledged" |
| 80 |
724 |
) |
| 81 |
|
|
| 82 |
724 |
H2_ERROR( |
| 83 |
724 |
/* name */ STREAM_CLOSED, |
| 84 |
724 |
/* val */ 5, |
| 85 |
724 |
/* types */ 2, |
| 86 |
724 |
/* goaway */ 1, |
| 87 |
724 |
/* reason */ SC_NULL, |
| 88 |
724 |
/* descr */ "Frame received for closed stream" |
| 89 |
724 |
) |
| 90 |
|
|
| 91 |
722 |
H2_ERROR( |
| 92 |
722 |
/* name */ FRAME_SIZE_ERROR, |
| 93 |
722 |
/* val */ 6, |
| 94 |
722 |
/* types */ 3, |
| 95 |
722 |
/* goaway */ 1, |
| 96 |
722 |
/* reason */ SC_RX_JUNK, |
| 97 |
722 |
/* descr */ "Frame size incorrect" |
| 98 |
722 |
) |
| 99 |
|
|
| 100 |
718 |
H2_ERROR( |
| 101 |
718 |
/* name */ REFUSED_STREAM, |
| 102 |
718 |
/* val */ 7, |
| 103 |
718 |
/* types */ 2, |
| 104 |
718 |
/* goaway */ 1, |
| 105 |
718 |
/* reason */ SC_NULL, |
| 106 |
718 |
/* descr */ "Stream not processed" |
| 107 |
718 |
) |
| 108 |
|
|
| 109 |
716 |
H2_ERROR( |
| 110 |
716 |
/* name */ CANCEL, |
| 111 |
716 |
/* val */ 8, |
| 112 |
716 |
/* types */ 2, |
| 113 |
716 |
/* goaway */ 1, |
| 114 |
716 |
/* reason */ SC_NULL, |
| 115 |
716 |
/* descr */ "Stream cancelled" |
| 116 |
716 |
) |
| 117 |
|
|
| 118 |
713 |
H2_ERROR( |
| 119 |
713 |
/* name */ COMPRESSION_ERROR, |
| 120 |
713 |
/* val */ 9, |
| 121 |
713 |
/* types */ 1, |
| 122 |
713 |
/* goaway */ 1, |
| 123 |
713 |
/* reason */ SC_RX_JUNK, |
| 124 |
713 |
/* descr */ "Compression state not updated" |
| 125 |
713 |
) |
| 126 |
|
|
| 127 |
710 |
H2_ERROR( |
| 128 |
710 |
/* name */ CONNECT_ERROR, |
| 129 |
710 |
/* val */ 10, |
| 130 |
710 |
/* types */ 2, |
| 131 |
710 |
/* goaway */ 1, |
| 132 |
710 |
/* reason */ SC_NULL, |
| 133 |
710 |
/* descr */ "TCP connection error for CONNECT method" |
| 134 |
710 |
) |
| 135 |
|
|
| 136 |
710 |
H2_ERROR( |
| 137 |
710 |
/* name */ ENHANCE_YOUR_CALM, |
| 138 |
710 |
/* val */ 11, |
| 139 |
710 |
/* types */ 3, |
| 140 |
710 |
/* goaway */ 1, |
| 141 |
710 |
/* reason */ SC_OVERLOAD, |
| 142 |
710 |
/* descr */ "Processing capacity exceeded" |
| 143 |
710 |
) |
| 144 |
|
|
| 145 |
703 |
H2_ERROR( |
| 146 |
703 |
/* name */ INADEQUATE_SECURITY, |
| 147 |
703 |
/* val */ 12, |
| 148 |
703 |
/* types */ 1, |
| 149 |
703 |
/* goaway */ 1, |
| 150 |
703 |
/* reason */ SC_RX_JUNK, |
| 151 |
703 |
/* descr */ "Negotiated TLS parameters not acceptable" |
| 152 |
703 |
) |
| 153 |
|
|
| 154 |
703 |
H2_ERROR( |
| 155 |
703 |
/* name */ HTTP_1_1_REQUIRED, |
| 156 |
703 |
/* val */ 13, |
| 157 |
703 |
/* types */ 1, |
| 158 |
703 |
/* goaway */ 1, |
| 159 |
703 |
/* reason */ SC_REQ_HTTP20, |
| 160 |
703 |
/* descr */ "Use HTTP/1.1 for the request" |
| 161 |
703 |
) |
| 162 |
|
|
| 163 |
|
#ifdef H2_CUSTOM_ERRORS |
| 164 |
|
H2_ERROR( |
| 165 |
|
/* name */ RAPID_RESET, |
| 166 |
|
/* val */ 11, /* ENHANCE_YOUR_CALM */ |
| 167 |
|
/* types */ 1, |
| 168 |
|
/* goaway */ 1, |
| 169 |
|
/* reason */ SC_RAPID_RESET, |
| 170 |
|
/* descr */ "http/2 rapid reset detected" |
| 171 |
|
) |
| 172 |
|
|
| 173 |
|
H2_ERROR( |
| 174 |
|
/* name */ MISSING_SCHEME, |
| 175 |
|
/* val */ 1, /* PROTOCOL_ERROR */ |
| 176 |
|
/* types */ 2, |
| 177 |
|
/* goaway */ 1, |
| 178 |
|
/* reason */ SC_NULL, |
| 179 |
|
/* descr */ "Missing :scheme pseudo-header" |
| 180 |
|
) |
| 181 |
|
|
| 182 |
|
H2_ERROR( |
| 183 |
|
/* name */ BROKE_WINDOW, |
| 184 |
|
/* val */ 8, /* CANCEL */ |
| 185 |
|
/* types */ 2, |
| 186 |
|
/* goaway */ 0, |
| 187 |
|
/* reason */ SC_NULL, |
| 188 |
|
/* descr */ "http/2 stream out of window credits" |
| 189 |
|
) |
| 190 |
|
|
| 191 |
|
H2_ERROR( |
| 192 |
|
/* name */ BANKRUPT, |
| 193 |
|
/* val */ 11, /* ENHANCE_YOUR_CALM */ |
| 194 |
|
/* types */ 1, |
| 195 |
|
/* goaway */ 0, |
| 196 |
|
/* reason */ SC_BANKRUPT, |
| 197 |
|
/* descr */ "http/2 bankrupt connection" |
| 198 |
|
) |
| 199 |
|
|
| 200 |
|
H2_ERROR( |
| 201 |
|
/* name */ REQ_SIZE, |
| 202 |
|
/* val */ 11, /* ENHANCE_YOUR_CALM */ |
| 203 |
|
/* types */ 2, |
| 204 |
|
/* goaway */ 0, |
| 205 |
|
/* reason */ SC_NULL, |
| 206 |
|
/* descr */ "HTTP/2 header list exceeded http_req_size" |
| 207 |
|
) |
| 208 |
|
# undef H2_CUSTOM_ERRORS |
| 209 |
|
#endif |
| 210 |
|
|
| 211 |
703 |
#undef H2_ERROR |
| 212 |
|
/*lint -restore */ |