2016-04-25 05:27:34 -04:00
|
|
|
//
|
2017-02-06 20:07:03 -05:00
|
|
|
// Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
|
2016-04-25 05:27:34 -04:00
|
|
|
//
|
|
|
|
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#ifndef BEAST_HTTP_PARSE_ERROR_HPP
|
|
|
|
|
#define BEAST_HTTP_PARSE_ERROR_HPP
|
|
|
|
|
|
2017-04-10 19:24:27 -07:00
|
|
|
#include <beast/config.hpp>
|
2016-05-07 14:57:15 -04:00
|
|
|
#include <beast/core/error.hpp>
|
2016-04-25 05:27:34 -04:00
|
|
|
|
|
|
|
|
namespace beast {
|
|
|
|
|
namespace http {
|
|
|
|
|
|
|
|
|
|
enum class parse_error
|
|
|
|
|
{
|
2016-10-04 18:00:11 -04:00
|
|
|
connection_closed = 1,
|
2016-04-25 05:27:34 -04:00
|
|
|
|
|
|
|
|
bad_method,
|
|
|
|
|
bad_uri,
|
|
|
|
|
bad_version,
|
|
|
|
|
bad_crlf,
|
|
|
|
|
|
|
|
|
|
bad_status,
|
2016-06-03 11:40:55 -04:00
|
|
|
bad_reason,
|
2016-04-25 05:27:34 -04:00
|
|
|
|
|
|
|
|
bad_field,
|
|
|
|
|
bad_value,
|
|
|
|
|
bad_content_length,
|
|
|
|
|
illegal_content_length,
|
|
|
|
|
|
|
|
|
|
invalid_chunk_size,
|
2016-06-03 11:40:55 -04:00
|
|
|
invalid_ext_name,
|
|
|
|
|
invalid_ext_val,
|
2016-04-25 05:27:34 -04:00
|
|
|
|
2016-11-10 05:34:49 -05:00
|
|
|
header_too_big,
|
2016-06-03 11:40:55 -04:00
|
|
|
body_too_big,
|
2016-11-08 13:15:07 -05:00
|
|
|
short_read
|
2016-04-25 05:27:34 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // http
|
|
|
|
|
} // beast
|
|
|
|
|
|
2016-10-04 18:00:11 -04:00
|
|
|
#include <beast/http/impl/parse_error.ipp>
|
2016-04-25 05:27:34 -04:00
|
|
|
|
|
|
|
|
#endif
|