[#HTTPRequest-WriteReply-0e] = xref:HTTPRequest.adoc[HTTPRequest]::WriteReply :relfileprefix: ../ :mrdocs: Queue a reply with the given status code and body to be sent to the client. == Synopsis Declared in `<httpserver.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void WriteReply( xref:HTTPStatusCode.adoc[HTTPStatusCode] status, std::span<std::byte const> reply_body = {}); ---- == Parameters [cols="1,4"] |=== | Name| Description | *status* | The HTTP status code to send. | *reply_body* | The response body bytes; empty for a status‐only reply. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#