Forum Discussion

Tony_Ngo's avatar
Tony_Ngo
Icon for Nimbostratus rankNimbostratus
Nov 08, 2005

Replacing 403 response with 401 (newbie to irules)

I am new to irules and I am trying to do the following:

 

 

If the client certificate is invalid, the BigIP should respond with a 403 back to the client instead of a 401.

 

 

Here is what I have.

 

 

when HTTP_RESPONSE {

 

if { [HTTP::status] eq "401" } {

 

set find "401"

 

set replace "403"

 

}

 

}