Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On provider error return it as an answer #8

Open
4www opened this issue May 17, 2017 · 0 comments
Open

On provider error return it as an answer #8

4www opened this issue May 17, 2017 · 0 comments

Comments

@4www
Copy link

4www commented May 17, 2017

When making a query to the providers api, if there is an error, return those error messages as the media api response.

Should it it be the pure "provider' error message, or should it be a "unified" message thought every providers available?

I am thinking maybe both with something like that:

{
  error: {
    code: '404',
    message: 'content not found',
    providerError: { // raw provider error}
  }
}

What error to return?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant