Media Type for errors?

20 views
Skip to first unread message

James Nail

unread,
Mar 16, 2016, 4:14:35 PM3/16/16
to Hypermedia Web
Has anyone here used a specific media type to return API errors?
If so, which one(s)?
Which would you recommend?
I know about Mark Nottingham's application/problem+json type, but I figured I'd try to get some opinions before just going with that one by default.

Thanks,

James

Martynas Jusevičius

unread,
Mar 16, 2016, 4:23:41 PM3/16/16
to hyperme...@googlegroups.com
Hey James,

I have used a specific RDF vocabulary: https://www.w3.org/TR/HTTP-in-RDF10/

Martynas
graphityhq.com
> --
> You received this message because you are subscribed to the Google Groups
> "Hypermedia Web" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to hypermedia-we...@googlegroups.com.
> To post to this group, send email to hyperme...@googlegroups.com.
> Visit this group at https://groups.google.com/group/hypermedia-web.
> For more options, visit https://groups.google.com/d/optout.

Joost Cassee

unread,
Mar 16, 2016, 4:35:12 PM3/16/16
to hyperme...@googlegroups.com
I have been using vnd.error [1], which works well in combination with HAL.

[1] https://github.com/blongden/vnd.error

Best,
Joost
--
Joost Cassee
+31 (0)6 14585693
https://jcassee.com

Erlend Hamnaberg

unread,
Mar 17, 2016, 3:56:41 AM3/17/16
to hyperme...@googlegroups.com
I have used problem+json with great success.

/E

On Wed, Mar 16, 2016 at 9:14 PM, James Nail <jrna...@gmail.com> wrote:

--
Reply all
Reply to author
Forward
0 new messages