Open wis3guy opened 9 years ago
If we support a richer error format we need to make sure that we provide a serialiser and also integrate media formatters into the different libraries we support.
If we do want to do this, having rich errors from our serialisers from the start would be a good idea and give us the flexibility to introduce this down the track.
Worth keeping this in mind
I was working on my own HAL based api and got tangled up in dealing with error messages i want to feed back to the consumer. While looking around, i found this: https://github.com/blongden/vnd.error
Is this something we would want to incorporate in this library? I can imagine that during request handling, or formatting, an exception is thrown. This could be a way to return them to the consumer, whilst remaining a well-formed response a client could deal with.
Thoughts?