Readability and conciseness of errors via the HTTP API (agent_api_rest) can be improved when following the Problem Details for HTTP APIs (RFC 7807). It introduces a "standard" way to report errors back to the caller.
Motivation
Enhanced API experience for the consumer.
We also want a more easy way to handle errors other than manually returning
Description
Readability and conciseness of errors via the HTTP API (
agent_api_rest
) can be improved when following the Problem Details for HTTP APIs (RFC 7807). It introduces a "standard" way to report errors back to the caller.Motivation
Enhanced API experience for the consumer. We also want a more easy way to handle errors other than manually returning
There are multiple options to explore:
thiserror
and?
) and build a custom error handler / mapperRequirements
Open Questions
No response
Are you planning to contribute this in a PR?
Yes