Error Report

Published: 18 May 2023

Known Uses

  1. RFC7807 is adopted by Dutch governmental API design rules, see Section 17 of “API Designrules Extensions”;
  2. Same in the Dutch Energy sector, which declared the RFC7807 members typetitle and status as required;
  3. Zalando http://opensource.zalando.com/restful-api-guidelines/#176 propose relative URI references in type field;
  4. Swedbank pay https://developer.swedbankpay.com/introduction.html#problems.

Discussion points:

  1. Should error handling include all possible errors or should it simply stop processing after the first error? The second scenario is how most APIs currently work since it less implementation effort. In case of Request Bundle (p292 of the book) first scenario is advisory;
  2. In the book (p290) it is stated: “Timestamps are another common information in Error Reports too”. Good point! However timestamp is not a member of RFC 7807 and seems to be absent in other alternative error response formats;
  3. Error reports should enable the receiver to be self-serviced. A talk given by Asbjørn Ulsberg is on this: https://www.youtube.com/watch?v=ZWIUn5BHDBc.

Read the complete pattern on api-patterns.org

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top