Сообщение HttpException или null, если error не является HttpException.
HttpException
null
error
static String? httpMessage(Object? error) => impl.httpMessage(error);