fix(api): errors propagation
Merge pull request #42 from pascalduez/api-error-handling

fix(api): errors propagation