impierce / ssi-agent

An eIDAS 2.0-compliant Self Sovereign Identity Agent that connects European Identity Wallets to your IT systems
https://www.impierce.com
Apache License 2.0
14 stars 4 forks source link

Problem Details for HTTP APIs (RFC 7807) #40

Open daniel-mader opened 5 months ago

daniel-mader commented 5 months ago

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

return StatusCode::INTERNAL_SERVER_ERROR.into_response();

There are multiple options to explore:

Requirements

  1. read and understand the scope of the RFC 7807
  2. search for a crate to make implementation easier (possibly this one)
  3. implement and test

Open Questions

No response

Are you planning to contribute this in a PR?

Yes

nanderstabel commented 3 days ago

(partially) depends on:https://github.com/impierce/openid4vc/issues/78