TSHTTPTXNERRORBODYSET(3ts)

πŸ“¦
version 9.2.5 Β· 4 versions
, in ubuntu noble, ubuntu questing

hey bestie, welcome to the manual page for TSHTTPTXNERRORBODYSET(3ts) πŸ’– this one's giving "set an error body on a transaction" and it's lowkey iconic. let's get into it.

✨ NAME ✨

TSHttpTxnErrorBodySet β€” sets an error type body to a transaction. periodt. πŸ’…

🌸 SYNOPSIS 🌸

#include <ts/ts.h>

void TSHttpTxnErrorBodySet(TSHttpTxn txnp, char *buf, size_t buflength, char *mimetype)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so real talk: both of the string arguments have to be allocated with TSmalloc() or TSstrdup(). no cap, that's the rule. 🫢

the mimetype is optional, and if you don't provide it, it defaults to text/html. and if you send an empty string, it would prevent setting a content type header β€” but bestie, that is not advised πŸ™ˆ.

2026, dev@trafficserver.apache.org


k love you bye! this was the TSHTTPTXNERRORBODYSET(3ts) manual, from Apache Traffic Server version 9.2, dated Feb 12, 2026. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from