Skip to content

Error Handling Enrichment | Add a specific error for liquidity pool not found #419

Description

@Sulex45

When GET /liquidity-pools/:id or related endpoints are called with a pool ID that does not exist, the current response is a raw Horizon 404. Add a specific LiquidityPoolNotFound error that returns { type: "LiquidityPoolNotFound", message: "Liquidity pool '{id}' was not found on the Stellar {network} network.", suggestion: "Verify the pool ID is correct and that the pool has not been dissolved." }. Add the error type to docs/error-reference.md.

Acceptance Criteria: All liquidity pool endpoints return the LiquidityPoolNotFound error on a Horizon 404. Tests cover the not-found path. The error type is documented in docs/error-reference.md.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programhighModerate complexity, requires some research

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions