---
name: "TSHttpTxnAborted"
section: "3ts"
platform: "linux"
package: "trafficserver-dev"
version: "9.2.5+ds-0+deb12u4"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/TSHttpTxnAborted"
---

# TSHttpTxnAborted(3ts)

TSHttpTxnAborted API function

## NAME

TSHttpTxnAborted - TSHttpTxnAborted API function

## SYNOPSIS

```
#include <ts/ts.h>
```

- ***TSReturnCode* TSHttpTxnAborted(*TSHttpTxn* txnp)**

  ## DESCRIPTION

*TSHttpTxnAborted()* returns *TS\_SUCCESS* if the requested transaction is aborted. This function should be used to determine whether a transaction has been aborted before attempting to cache the results.

## RETURN VALUES

The API returns *TS\_SUCCESS*, if the requested transaction is aborted, *TS\_ERROR* otherwise.

## COPYRIGHT

2026, dev@trafficserver.apache.org
