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

Error 500 returned instead of 404 when book is not found #812

Open
nichwall opened this issue Dec 26, 2024 · 0 comments
Open

Error 500 returned instead of 404 when book is not found #812

nichwall opened this issue Dec 26, 2024 · 0 comments

Comments

@nichwall
Copy link

Based on the API docs as December 26, 2024, a response of 404 should be returned if a book is not found by id (such as the ASIN).
https://audnex.us/#tag/Books/operation/getBookById

Currently, error code 500 is returned instead of a 400 or 404. Is this an error in the code or a documentation issue?

For example, sending a query to https://api.audnex.us/books/B0DRFZR5RL results in

    data: {
      statusCode: 500,
      error: 'Internal Server Error',
      message: "Item not available in region 'us' for ASIN: B0DRFZR5RL"
    }
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