[p3t] Structured error messages and RFC 7807
p3t at ivoa.net
p3t at ivoa.net
Thu Oct 24 16:18:17 CEST 2024
Hi Russ,
Thanks for that, I don't know this RFC existed.
Inside ExecutionBroker I've been using a form of message templates.
https://messagetemplates.org/
These are only for the internal messages that are part of a 200
response, but it would be interesting to see if we could combine the two
approaches.
Cheers,
-- Dave
--------
Dave Morris
Research Software Engineer
UK SKA Regional Centre
Department of Physics and Astronomy
University of Manchester
--------
AIMetrics: []
--------
On 2024-10-24 02:05, Russ Allbery via p3t wrote:
> I keep forgetting that this standard exists, so since structured error
> messages came up in the call today and I happened to remember it while
> editing some other documents, I wanted to send out a link before I
> forgot
> it again.
>
> https://datatracker.ietf.org/doc/html/rfc7807
>
> is an existing standard for structured HTTP error messages that
> predefines
> a JSON type and a set of standard fields. It's extensible in that any
> implementation is allowed to add new fields that don't conflict with
> the
> standard fields. The IVOA could define one or more problem types (in
> the
> language of this standard) for our structured error message, which
> would
> mean any client that understood RFC 7807 application/problem+json
> errors
> would automatically be aware of at least the standard fields.
>
> --
> Russ Allbery (eagle at eyrie.org)
> <https://www.eyrie.org/~eagle/>
More information about the p3t
mailing list