fixed status codes to allow redirects