use correct response codes, tests for async redirection