---
name: "TSHttpHdrStatusGet"
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/TSHttpHdrStatusGet"
---

# TSHttpHdrStatusGet(3ts)

TSHttpHdrStatusGet API function

## NAME

TSHttpHdrStatusGet - TSHttpHdrStatusGet API function

## SYNOPSIS

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

- ***TSHttpStatus* TSHttpHdrStatusGet(*TSMBuffer* bufp, *TSMLoc* offset)**

  ## DESCRIPTION

Retrieve the status code value from the HTTP response header identified by *bufp* and *offset*. The value should be an enumeration value of *TSHttpStatus*, although because plugins can call *TSHttpHdrStatusSet()* this may not be true. If the header is not a valid response then *TS\_HTTP\_STATUS\_NONE* is returned.

## SEE ALSO

*TSHttpTxnClientRespGet()*, *TSHttpTxnServerRespGet()*, *TSHttpHdrTypeGet()*.

## COPYRIGHT

2026, dev@trafficserver.apache.org
