Refactor api error handling

Andrey Veltischev requested to merge andrey/api_refactoring into alex/swift-storage

Merge request reports