2 // Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
4 // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 #ifndef BEAST_HTTP_ERROR_HPP
9 #define BEAST_HTTP_ERROR_HPP
11 #include <beast/config.hpp>
12 #include <beast/core/error.hpp>
17 /// Error codes returned from HTTP parsing
20 /** The end of the stream was reached.
22 This error is returned by @ref basic_parser::write_eof
23 when the end of stream is reached and there are no
24 unparsed bytes in the stream buffer.
28 /** The incoming message is incomplete.
30 This happens when the end of stream is reached
31 and some bytes have been received, but not the
36 /** Buffer maximum exceeded.
38 This error is returned when reading HTTP content
39 into a dynamic buffer, and the operation would
40 exceed the maximum size of the buffer.
44 /// The line ending was malformed
47 /// The method is invalid.
50 /// The request-target is invalid.
53 /// The HTTP-version is invalid.
56 /// The status-code is invalid.
59 /// The reason-phrase is invalid.
62 /// The field name is invalid.
65 /// The field value is invalid.
68 /// The Content-Length is invalid.
71 /// The Transfer-Encoding is invalid.
72 bad_transfer_encoding,
74 /// The chunk syntax is invalid.
81 #include <beast/http/impl/error.ipp>