TSHTTPTXNERRORBODYSET(3ts)
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 π.
π COPYRIGHT π
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
- ubuntu noble: trafficserver-dev 9.2.3+ds-1+deb12u1ubuntu0.1 Β· Apache-2.0
- ubuntu questing: trafficserver-dev 9.2.5+ds-1ubuntu2.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms