F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

Tony_Ngo's avatar
Tony_Ngo
Icon for Nimbostratus rankNimbostratus
Nov 07, 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"

 

}

 

}