Fix redirect & basic authentication status code