Gets the configured function that will be called whenever a request validation error occurs