dev@jersey.java.net

HTTP error codes throws by Jersey

From: exxos <hatufr_at_gmail.com>
Date: Fri, 10 Sep 2010 15:28:13 +0200

Hi,

How can we know the HTTP error codes that Jersey can throw?
If you look at the WebApplicationException, one of its constructors, waits
for a Response.Status. If all Jersey's runtime exception inherite from
WebApplicationException, only the HTTP error codes defined in
Response.Status will be thrown.
But the javadoc of the JSR-311 informs that Response.Status can be extended
by the implementation (here is Jersey) using Response.StatusType.

ErrorHandler extends ExceptionMapper<RuntimeException>

Finally, what are the runtime exceptions possible with Jersey? Which kind of
runtime exceptions can be thrown?

Regards,
exxos.