Correct a bug about infinite redirect
Add response for co, co error and disconnect
...