3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>websocket::error</title>
5 <link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7 <link rel="home" href="../../index.html" title="Chapter 1. Boost.Beast">
8 <link rel="up" href="../ref.html" title="This Page Intentionally Left Blank 2/2">
9 <link rel="prev" href="boost__beast__websocket__condition.html" title="websocket::condition">
10 <link rel="next" href="boost__beast__websocket__frame_type.html" title="websocket::frame_type">
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr>
14 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
15 <td align="center"><a href="../../../../../../index.html">Home</a></td>
16 <td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td>
17 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19 <td align="center"><a href="../../../../../../more/index.htm">More</a></td>
22 <div class="spirit-nav">
23 <a accesskey="p" href="boost__beast__websocket__condition.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../ref.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="boost__beast__websocket__frame_type.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
26 <div class="titlepage"><div><div><h4 class="title">
27 <a name="beast.ref.boost__beast__websocket__error"></a><a class="link" href="boost__beast__websocket__error.html" title="websocket::error">websocket::error</a>
28 </h4></div></div></div>
30 <a class="indexterm" name="idm45873475277728"></a>
31 Error codes returned from <a class="link" href="boost__beast__websocket__stream.html" title="websocket::stream"><code class="computeroutput"><span class="identifier">websocket</span><span class="special">::</span><span class="identifier">stream</span></code></a> operations.
34 <a name="beast.ref.boost__beast__websocket__error.h0"></a>
35 <span class="phrase"><a name="beast.ref.boost__beast__websocket__error.synopsis"></a></span><a class="link" href="boost__beast__websocket__error.html#beast.ref.boost__beast__websocket__error.synopsis">Synopsis</a>
38 Defined in header <code class="literal"><<a href="../../../../../../boost/beast/websocket/error.hpp" target="_top">boost/beast/websocket/error.hpp</a>></code>
40 <pre class="programlisting"><span class="keyword">enum</span> <span class="identifier">error</span>
43 <a class="indexterm" name="idm45873475266832"></a>
44 <a class="indexterm" name="idm45873475265728"></a>
45 <a class="indexterm" name="idm45873475264624"></a>
46 <a class="indexterm" name="idm45873475263520"></a>
47 <a class="indexterm" name="idm45873475262416"></a>
48 <a class="indexterm" name="idm45873475261312"></a>
49 <a class="indexterm" name="idm45873475260208"></a>
50 <a class="indexterm" name="idm45873475259104"></a>
51 <a class="indexterm" name="idm45873475258000"></a>
52 <a class="indexterm" name="idm45873475256896"></a>
53 <a class="indexterm" name="idm45873475255792"></a>
54 <a class="indexterm" name="idm45873475254688"></a>
55 <a class="indexterm" name="idm45873475253584"></a>
56 <a class="indexterm" name="idm45873475252480"></a>
57 <a class="indexterm" name="idm45873475251376"></a>
58 <a class="indexterm" name="idm45873475250272"></a>
59 <a class="indexterm" name="idm45873475249168"></a>
60 <a class="indexterm" name="idm45873475248064"></a>
61 <a class="indexterm" name="idm45873475246960"></a>
62 <a class="indexterm" name="idm45873475245856"></a>
63 <a class="indexterm" name="idm45873475244752"></a>
64 <a class="indexterm" name="idm45873475243648"></a>
65 <a class="indexterm" name="idm45873475242544"></a>
66 <a class="indexterm" name="idm45873475241440"></a>
67 <a class="indexterm" name="idm45873475240336"></a>
68 <a class="indexterm" name="idm45873475239232"></a>
69 <a class="indexterm" name="idm45873475238128"></a>
70 <a class="indexterm" name="idm45873475237024"></a>
71 <a class="indexterm" name="idm45873475235920"></a>
72 <a class="indexterm" name="idm45873475234816"></a>
73 <a class="indexterm" name="idm45873475233712"></a>
77 <a name="beast.ref.boost__beast__websocket__error.h1"></a>
78 <span class="phrase"><a name="beast.ref.boost__beast__websocket__error.values"></a></span><a class="link" href="boost__beast__websocket__error.html#beast.ref.boost__beast__websocket__error.values">Values</a>
80 <div class="informaltable"><table class="table">
101 <code class="literal">closed</code>
106 The WebSocket stream was gracefully closed at both endpoints.
113 <code class="literal">buffer_overflow</code>
118 The WebSocket operation caused a dynamic buffer overflow.
125 <code class="literal">partial_deflate_block</code>
130 The WebSocket stream produced an incomplete deflate block.
137 <code class="literal">message_too_big</code>
142 The WebSocket message exceeded the locally configured limit.
149 <code class="literal">bad_http_version</code>
154 The WebSocket handshake was not HTTP/1.1.
157 Error codes with this value will compare equal to @ref condition::handshake_failed
164 <code class="literal">bad_method</code>
169 The WebSocket handshake method was not GET.
172 Error codes with this value will compare equal to @ref condition::handshake_failed
179 <code class="literal">no_host</code>
184 The WebSocket handshake Host field is missing.
187 Error codes with this value will compare equal to @ref condition::handshake_failed
194 <code class="literal">no_connection</code>
199 The WebSocket handshake Connection field is missing.
202 Error codes with this value will compare equal to @ref condition::handshake_failed
209 <code class="literal">no_connection_upgrade</code>
214 The WebSocket handshake Connection field is missing the upgrade
218 Error codes with this value will compare equal to @ref condition::handshake_failed
225 <code class="literal">no_upgrade</code>
230 The WebSocket handshake Upgrade field is missing.
233 Error codes with this value will compare equal to @ref condition::handshake_failed
240 <code class="literal">no_upgrade_websocket</code>
245 The WebSocket handshake Upgrade field is missing the websocket
249 Error codes with this value will compare equal to @ref condition::handshake_failed
256 <code class="literal">no_sec_key</code>
261 The WebSocket handshake Sec-WebSocket-Key field is missing.
264 Error codes with this value will compare equal to @ref condition::handshake_failed
271 <code class="literal">bad_sec_key</code>
276 The WebSocket handshake Sec-WebSocket-Key field is invalid.
279 Error codes with this value will compare equal to @ref condition::handshake_failed
286 <code class="literal">no_sec_version</code>
291 The WebSocket handshake Sec-WebSocket-Version field is missing.
294 Error codes with this value will compare equal to @ref condition::handshake_failed
301 <code class="literal">bad_sec_version</code>
306 The WebSocket handshake Sec-WebSocket-Version field is invalid.
309 Error codes with this value will compare equal to @ref condition::handshake_failed
316 <code class="literal">no_sec_accept</code>
321 The WebSocket handshake Sec-WebSocket-Accept field is missing.
324 Error codes with this value will compare equal to @ref condition::handshake_failed
331 <code class="literal">bad_sec_accept</code>
336 The WebSocket handshake Sec-WebSocket-Accept field is invalid.
339 Error codes with this value will compare equal to @ref condition::handshake_failed
346 <code class="literal">upgrade_declined</code>
351 The WebSocket handshake was declined by the remote peer.
354 Error codes with this value will compare equal to @ref condition::handshake_failed
361 <code class="literal">bad_opcode</code>
366 The WebSocket frame contained an illegal opcode.
369 Error codes with this value will compare equal to @ref condition::protocol_violation
376 <code class="literal">bad_data_frame</code>
381 The WebSocket data frame was unexpected.
384 Error codes with this value will compare equal to @ref condition::protocol_violation
391 <code class="literal">bad_continuation</code>
396 The WebSocket continuation frame was unexpected.
399 Error codes with this value will compare equal to @ref condition::protocol_violation
406 <code class="literal">bad_reserved_bits</code>
411 The WebSocket frame contained illegal reserved bits.
414 Error codes with this value will compare equal to @ref condition::protocol_violation
421 <code class="literal">bad_control_fragment</code>
426 The WebSocket control frame was fragmented.
429 Error codes with this value will compare equal to @ref condition::protocol_violation
436 <code class="literal">bad_control_size</code>
441 The WebSocket control frame size was invalid.
444 Error codes with this value will compare equal to @ref condition::protocol_violation
451 <code class="literal">bad_unmasked_frame</code>
456 The WebSocket frame was unmasked.
459 Error codes with this value will compare equal to @ref condition::protocol_violation
466 <code class="literal">bad_masked_frame</code>
471 The WebSocket frame was masked.
474 Error codes with this value will compare equal to @ref condition::protocol_violation
481 <code class="literal">bad_size</code>
486 The WebSocket frame size was not canonical.
489 Error codes with this value will compare equal to @ref condition::protocol_violation
496 <code class="literal">bad_frame_payload</code>
501 The WebSocket frame payload was not valid utf8.
504 Error codes with this value will compare equal to @ref condition::protocol_violation
511 <code class="literal">bad_close_code</code>
516 The WebSocket close frame reason code was invalid.
519 Error codes with this value will compare equal to @ref condition::protocol_violation
526 <code class="literal">bad_close_size</code>
531 The WebSocket close frame payload size was invalid.
534 Error codes with this value will compare equal to @ref condition::protocol_violation
541 <code class="literal">bad_close_payload</code>
546 The WebSocket close frame payload was not valid utf8.
549 Error codes with this value will compare equal to @ref condition::protocol_violation
556 <a name="beast.ref.boost__beast__websocket__error.h2"></a>
557 <span class="phrase"><a name="beast.ref.boost__beast__websocket__error.description"></a></span><a class="link" href="boost__beast__websocket__error.html#beast.ref.boost__beast__websocket__error.description">Description</a>
560 Convenience header <code class="literal"><<a href="../../../../../../boost/beast/websocket.hpp" target="_top">boost/beast/websocket.hpp</a>></code>
563 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
564 <td align="left"></td>
565 <td align="right"><div class="copyright-footer">Copyright © 2016-2019 Vinnie
567 Distributed under the Boost Software License, Version 1.0. (See accompanying
568 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
573 <div class="spirit-nav">
574 <a accesskey="p" href="boost__beast__websocket__condition.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../ref.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="boost__beast__websocket__frame_type.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>