explorer-backend icon indicating copy to clipboard operation
explorer-backend copied to clipboard

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

Open bravo-kernel opened this issue 3 years ago • 0 comments

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.

bravo-kernel avatar Aug 30 '21 17:08 bravo-kernel