[jax-rs-spec users] [jsr339-experts] Error status in case of default MessageBodyReaders failing to read the message

From: Sergey Beryozkin <>
Date: Thu, 8 Dec 2011 11:28:06 +0000


I can see the spec (1.1 or the 2.0 early draft) saying what one of the
default MessageBodyReader providers should do when it fails to read the
incoming message.
The only clarification is that 400 should be thrown by the JAXB provider
and null returned by others in case of empty messages.

What if JAXB provider deals with a malformed xml, is it 400 or 500 ?

Cheers, Sergey