.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "TSHTTPHDRSTATUSGET" "3ts" "Apr 16, 2024" "9.2" "Apache Traffic Server" .SH NAME TSHttpHdrStatusGet \- TSHttpHdrStatusGet API function .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .EX #include .EE .UNINDENT .UNINDENT .INDENT 0.0 .TP .B \fI\%TSHttpStatus\fP TSHttpHdrStatusGet(\fI\%TSMBuffer\fP bufp, \fI\%TSMLoc\fP offset) .UNINDENT .SH DESCRIPTION .sp Retrieve the status code value from the HTTP response header identified by \fIbufp\fP and \fIoffset\fP\&. The value should be an enumeration value of \fI\%TSHttpStatus\fP, although because plugins can call \fI\%TSHttpHdrStatusSet()\fP this may not be true. If the header is not a valid response then \fI\%TS_HTTP_STATUS_NONE\fP is returned. .SH SEE ALSO .sp \fI\%TSHttpTxnClientRespGet()\fP, \fI\%TSHttpTxnServerRespGet()\fP, \fI\%TSHttpHdrTypeGet()\fP\&. .SH COPYRIGHT 2024, dev@trafficserver.apache.org .\" Generated by docutils manpage writer. .