SSPR CLE Custom denial message

Dear community,

we have setup a SSPR with connection to LDAP. SSPR is shown to users via Access Gateway proxy service and so is its REST api.

Next we have configured a CLE to talk to SSPR for users to change their passwords. Since we do not want to open SSPR REST API publicly we have set up a policy that denies request if it is comming from internet.

What we would like to do next is to show users some kind message like "You are not able to change your password while being outside of companys network" when user is working from home and wants to change his password.

did maybe anyone try to do that already or has any information regarding this option?

With kind regards,

Sebastian Novak