Respect configuration whether to redirect and with which code.