Status code based error redirection