3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>http::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__http__empty_body__value_type.html" title="http::empty_body::value_type">
10 <link rel="next" href="boost__beast__http__ext_list.html" title="http::ext_list">
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__http__empty_body__value_type.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__http__ext_list.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__http__error"></a><a class="link" href="boost__beast__http__error.html" title="http::error">http::error</a>
28 </h4></div></div></div>
30 <a class="indexterm" name="idm45873500334128"></a>
31 Error codes returned from HTTP algorithms and operations.
34 <a name="beast.ref.boost__beast__http__error.h0"></a>
35 <span class="phrase"><a name="beast.ref.boost__beast__http__error.synopsis"></a></span><a class="link" href="boost__beast__http__error.html#beast.ref.boost__beast__http__error.synopsis">Synopsis</a>
38 Defined in header <code class="literal"><<a href="../../../../../../boost/beast/http/error.hpp" target="_top">boost/beast/http/error.hpp</a>></code>
40 <pre class="programlisting"><span class="keyword">enum</span> <span class="identifier">error</span>
43 <a class="indexterm" name="idm45873500326144"></a>
44 <a class="indexterm" name="idm45873500325040"></a>
45 <a class="indexterm" name="idm45873500323936"></a>
46 <a class="indexterm" name="idm45873500322832"></a>
47 <a class="indexterm" name="idm45873500321728"></a>
48 <a class="indexterm" name="idm45873500320624"></a>
49 <a class="indexterm" name="idm45873500319520"></a>
50 <a class="indexterm" name="idm45873500318416"></a>
51 <a class="indexterm" name="idm45873500317312"></a>
52 <a class="indexterm" name="idm45873500316208"></a>
53 <a class="indexterm" name="idm45873500315104"></a>
54 <a class="indexterm" name="idm45873500314000"></a>
55 <a class="indexterm" name="idm45873500312896"></a>
56 <a class="indexterm" name="idm45873500311792"></a>
57 <a class="indexterm" name="idm45873500310688"></a>
58 <a class="indexterm" name="idm45873500309584"></a>
59 <a class="indexterm" name="idm45873500308480"></a>
60 <a class="indexterm" name="idm45873500307376"></a>
61 <a class="indexterm" name="idm45873500306272"></a>
62 <a class="indexterm" name="idm45873500305168"></a>
63 <a class="indexterm" name="idm45873500304064"></a>
64 <a class="indexterm" name="idm45873500302960"></a>
65 <a class="indexterm" name="idm45873500301856"></a>
66 <a class="indexterm" name="idm45873500300752"></a>
70 <a name="beast.ref.boost__beast__http__error.h1"></a>
71 <span class="phrase"><a name="beast.ref.boost__beast__http__error.values"></a></span><a class="link" href="boost__beast__http__error.html#beast.ref.boost__beast__http__error.values">Values</a>
73 <div class="informaltable"><table class="table">
94 <code class="literal">end_of_stream</code>
99 The end of the stream was reached.
102 This error is returned when attempting to read HTTP data, and the
103 stream returns the error <code class="computeroutput"><span class="identifier">net</span><span class="special">::</span><span class="identifier">error</span><span class="special">::</span><span class="identifier">eof</span></code>
104 before any octets corresponding to a new HTTP message have been
112 <code class="literal">partial_message</code>
117 The incoming message is incomplete.
120 This happens when the end of stream is reached during parsing and
121 some octets have been received, but not the entire message.
128 <code class="literal">need_more</code>
133 Additional buffers are required.
136 This error is returned during parsing when additional octets are
137 needed. The caller should append more data to the existing buffer
138 and retry the parse operaetion.
145 <code class="literal">unexpected_body</code>
150 An unexpected body was encountered during parsing.
153 This error is returned when attempting to parse body octets into
154 a message container which has the @ref empty_body body type.
164 <code class="literal">need_buffer</code>
169 Additional buffers are required.
172 This error is returned under the following conditions:
175 @li During serialization when using @ref buffer_body. The caller
176 should update the body to point to a new buffer or indicate that
177 there are no more octets in the body.
180 @li During parsing when using @ref buffer_body. The caller should
181 update the body to point to a new storage area to receive additional
189 <code class="literal">end_of_chunk</code>
194 The end of a chunk was reached.
201 <code class="literal">buffer_overflow</code>
206 Buffer maximum exceeded.
209 This error is returned when reading HTTP content into a dynamic
210 buffer, and the operation would exceed the maximum size of the
218 <code class="literal">header_limit</code>
223 Header limit exceeded.
226 The parser detected an incoming message header which exceeded a
234 <code class="literal">body_limit</code>
242 The parser detected an incoming message body which exceeded a configured
250 <code class="literal">bad_alloc</code>
255 A memory allocation failed.
258 When basic_fields throws std::bad_alloc, it is converted into this
259 error by @ref parser.
266 <code class="literal">bad_line_ending</code>
271 The line ending was malformed.
278 <code class="literal">bad_method</code>
283 The method is invalid.
290 <code class="literal">bad_target</code>
295 The request-target is invalid.
302 <code class="literal">bad_version</code>
307 The HTTP-version is invalid.
314 <code class="literal">bad_status</code>
319 The status-code is invalid.
326 <code class="literal">bad_reason</code>
331 The reason-phrase is invalid.
338 <code class="literal">bad_field</code>
343 The field name is invalid.
350 <code class="literal">bad_value</code>
355 The field value is invalid.
362 <code class="literal">bad_content_length</code>
367 The Content-Length is invalid.
374 <code class="literal">bad_transfer_encoding</code>
379 The Transfer-Encoding is invalid.
386 <code class="literal">bad_chunk</code>
391 The chunk syntax is invalid.
398 <code class="literal">bad_chunk_extension</code>
403 The chunk extension is invalid.
410 <code class="literal">bad_obs_fold</code>
415 An obs-fold exceeded an internal limit.
422 <code class="literal">stale_parser</code>
430 This happens when attempting to re-use a parser that has already
431 completed parsing a message. Programs must construct a new parser
432 for each message. This can be easily done by storing the parser
433 in an boost or std::optional container.
440 <a name="beast.ref.boost__beast__http__error.h2"></a>
441 <span class="phrase"><a name="beast.ref.boost__beast__http__error.description"></a></span><a class="link" href="boost__beast__http__error.html#beast.ref.boost__beast__http__error.description">Description</a>
444 Convenience header <code class="literal"><<a href="../../../../../../boost/beast/http.hpp" target="_top">boost/beast/http.hpp</a>></code>
447 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
448 <td align="left"></td>
449 <td align="right"><div class="copyright-footer">Copyright © 2016-2019 Vinnie
451 Distributed under the Boost Software License, Version 1.0. (See accompanying
452 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>)
457 <div class="spirit-nav">
458 <a accesskey="p" href="boost__beast__http__empty_body__value_type.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__http__ext_list.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>