improve invalid_redirect of error_code.

Signed-off-by: Jack <jack.wgm@gmail.com>
improve lost host prefix for redirect.

Signed-off-by: Jack <jack.wgm@gmail.com>