jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Malformed media types and status codes

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Sun, 25 Sep 2011 22:07:43 +0100

Hi

I'm wondering, what should the specification say about cases where
HTTP ContentType or Accept contain malformed values.

For example, should

Accept: text

result in 406 or 400 ?

I'd like to avoid defaulting 'text' to text/* - that would probably be
illegal anyway

Cheers, Sergey


-- 
Sergey Beryozkin
http://sberyozkin.blogspot.com
Talend - http://www.talend.com