diff --git a/remote/http/service.go b/remote/http/service.go index c17b0d1..4286997 100644 --- a/remote/http/service.go +++ b/remote/http/service.go @@ -27,6 +27,15 @@ var ( logg = logging.NewVanilla().WithDomain("sarafu-api.devapi") ) +type APIError struct { + Code string + Description string +} + +func (e *APIError) Error() string { + return e.Description +} + type HTTPAccountService struct { SS storage.StorageService UseApi bool