3#include <userver/formats/json/value.hpp>
4#include <userver/http/content_type.hpp>
6#include <userver/server/handlers/exceptions.hpp>
10namespace server::handlers {
16 static constexpr bool kIsExternalBodyFormatted =
true;
21 std::string_view error_code,
22 std::string internal_message,
23 std::string_view external_error_body,
27 const std::string& GetInternalMessage()
const {
return internal_message_; };
29 const std::string& GetExternalBody()
const {
return json_error_body_; }
31 static const USERVER_NAMESPACE::http::
ContentType& GetContentType() {
32 return USERVER_NAMESPACE::http::content_type::kApplicationJson;
36 std::string internal_message_;
37 std::string json_error_body_;