explorer-backend
explorer-backend copied to clipboard
Transaction request for non existing address returns status code 200 (instead of 404)
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
- Request
https://api.ergoplatform.com/api/v1/addresses/{invalid-address}/transactions
- API responds with 404 status code (Not Found)
Actual Behavior
- Request
https://api.ergoplatform.com/api/v1/addresses/{invalid-address}/transactions
- API responds with 200 status code (Success)
Summarized
It would be nice if the API would produce the 404 for us, if possible.