Forum Discussion

Fred_01's avatar
Fred_01
Icon for Nimbostratus rankNimbostratus
Mar 27, 2018

HTTP::Status after HTTP::respond

Hello

 

I have some issue with Irules

 

I have 2 irules:

 

  • first irule specific to one VS who makes some filtering job, when i want block some request i do
when HTTP_REQUEST_SEND {
    clientside {
            HTTP::respond 403 -version "1.1" content "Request RejectedYou are not authorized to access this page" noserver Connection Close
    }
}
  • second irule who is generic to all VS who logs all traffic
when HTTP_RESPONSE_RELEASE {
    set logTxt "$logTxt status=[HTTP::status]\n"
    HSL::send $hsl $logTxt
}

The issue is that when i block some request with the http::respond, the status code in the second irules is 200

 

do you know how i can trap the 403 code generate with http::respond command

 

Thank you