updated doc on error as last argument

What is `redirect` parameter for?