Fix redirect status code