// SPDX-License-Identifier: BSD-3-Clause #include "response.h" namespace protocol { BaseResponse::BaseResponse(std::shared_ptr raw, size_t rawSize) : raw_(std::move(raw)), rawSize_(rawSize) {} formattable_ptr ErrorResponse::format(formatter::Format format) { return std::shared_ptr( new formatter::Status(format, false, error_) ); } }