Skip to content

Commit 16991a9

Browse files
authored
PEP 847: add some context around multiple errors (#5216)
Signed-off-by: William Woodruff <william@yossarian.net>
1 parent 607ffe3 commit 16991a9

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎peps/pep-0847.rst‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,8 @@ Another option is to diverge from :rfc:`9457`, and pick (or invent) another
263263
error format. An argument in favor of this is specificity:
264264
a custom error format could, for example, provide dedicated error
265265
codes that communicate failure modes that are common/shared
266-
across many index implementations and hosts.
266+
across many index implementations and hosts. Similarly, a custom error
267+
format could represent multiple errors from an index at once.
267268

268269
We consider this option unsuitable for two reasons:
269270

@@ -272,8 +273,10 @@ We consider this option unsuitable for two reasons:
272273
need custom representations for various authorization and authentication error
273274
states.
274275
#. :rfc:`9457` is *already* extensible, and a future PEP *could* added shared error
275-
codes as a well-known extension in the future. In other words, any foreseeable
276-
benefit from a custom format is already subsumable within the Problem Details format.
276+
codes as a well-known extension in the future. Similarly, :rfc:`9457`'s design
277+
enables multiple interior errors as an extension, per :rfc:`9457#section-3`.
278+
In other words, the benefits of a custom format are already provided by the
279+
Problem Details format.
277280

278281
.. _problem-details-appendix-1:
279282

0 commit comments

Comments
 (0)