changed the error code for a redirect to http
changed order of error codes