Handling request error.