updated doc on error as last argument

Yes thats what my expectation too but the callback we are passing to post already receives two parameters as result like (obj, redirect) so i left the redirect as it is to be compatible with existing code