yada throws exception when media-type is not parsable
When a client sends an invalid Accept header e.g. 'Accept: application/json, text/plain, /', yada.media-type/string->media-type will throw an exception, resulting in a 500 response.
This should be 400 Bad Request.
I agree. There's a few of these cases I'm looking at now, like #54
I just came across this as well, looks like it should check that g is not empty in yada.media-type line 34. Should it throw an error if it's not parsable or just ignore it?
I think it should be a 400 ideally. I'm aware of it - I did try to fix it the other day but it was a little more tricky than I had time for.