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”

}

}

Search for HTTP::respond