HTTP::status

Description

Returns the response status code as defined in RFC2616

Syntax

HTTP::status

HTTP::status

  • Returns the response status code as defined in RFC2616

Examples

when HTTP_RESPONSE {
  if { [HTTP::status] == 404 } {
    HTTP::redirect "http://www.example.com/not_found.html"
 }
}