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

Transaction request for non existing address returns status code 200 (instead of 404) #148

Open
bravo-kernel opened this issue Aug 30, 2021 · 0 comments

Comments

@bravo-kernel
Copy link

Hi there, awesome API.

We are using v1 and are getting unexpected 200 response codes when requesting transactions for invalid addresses.

From the Redoc for getApiV1AddressesP1Transactions

https://api.ergoplatform.com/api/v1/addresses/{p1}/transactions

Expected Behavior

  1. Request https://api.ergoplatform.com/api/v1/addresses/{invalid-address}/transactions
  2. API responds with 404 status code (Not Found)

Actual Behavior

  1. Request https://api.ergoplatform.com/api/v1/addresses/{invalid-address}/transactions
  2. API responds with 200 status code (Success)

Summarized

It would be nice if the API would produce the 404 for us, if possible.

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