onServerError

Assigns a handler for an error occurred on the server-side (such as validation error) in response to posting a request.