onError method
This method is called when an error occurs when executing the request.
Implementation
@override
void onError(Object error, StackTrace stackTrace) {
final msg = _messageError(startTime, uri, method, watch.elapsed);
print("Error request $msg: $stackTrace");
}