Add errorHandler, show how to get params from url