If it would be an  issue, I think change the signature to `setError(const QString& error, qRestAPI::ErrorType errorType = qRestAPI::UnknownError)` would allow to be API backward compatible.