Can someone tell me how to redirect the user on each API, if 401, that is, do not write the logic again for each action