DOKK / manpages / debian 11 / trafficserver-dev / TSHttpTxnErrorBodySet.3ts.en
TSHTTPTXNERRORBODYSET(3ts) Apache Traffic Server TSHTTPTXNERRORBODYSET(3ts)

TSHttpTxnErrorBodySet - sets an error type body to a transaction

#include <ts/ts.h>


Note that both string arguments must be allocated with TSmalloc() or TSstrdup(). The mimetype is optional, and if not provided it defaults to text/html. Sending an empty string would prevent setting a content type header (but that is not advised).

2023, dev@trafficserver.apache.org

November 2, 2023 8.1