cweiskevoxpelli, I've had enough API situations in which validating the returned content type quickly told me that either I made an error, or the API sent something strange to my request. reduced debugging time
voxpellicweiske: my experience instead says that trying to return the same format no matter which situation and then inspecting the data itself and/or response code is preferable
voxpelliBut true, many clients ignore content types and simply parse the response in different ways until a parser returns a non-error result of the parsing
voxpelliCan you show some pre-existing work and some arguments on why error-specific content types would add anything and make things better in any way?
voxpelliThe downside of them are that any clients that expect a json response to have the content type "application/json" will fail to parse the response
voxpellicweiske: so far I only see an argument that it reduces _your_ debugging time to be fair. It would probably increase mine because I would totally not expect it
voxpelliRight, um, well – that in itself is a pretty good argument why mime-types are crazily confusing and should just be left as simple as possible ;)
aaronpktypically the error messages that APIs return are not user-centric, and more often than not just confuse the user rather than help them. it's an interesting idea to have a special property to explicitly return a user-level error message, especially since with Micropub, we have lots of different server implementations that have various restrictions outside of what the spec requires
beari've always been a fan of { "result": { "code": 5XX, "message": "you did something wrong", "text": "here is a text version of why I decided to not let you do this..." } }
voxpelliaaronpk: I'm just about to head to sleep, but general thought is that looks good, only thing maybe lacking is how to add a non-experimental property – if eg another spec wants to extend Micropub