ergoplatform / ergoplatform/explorer-backend
Transaction request for non existing address returns status code 200 (instead of 404)
- Dominant language
- Scala
- Stars
- 23
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
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/docs/#operation/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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.