Generate code response type redirect response.