users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Exceptions for representing HTTP errors

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Tue, 15 May 2012 11:38:41 +0100

I prototyped few exceptions for representing the most important HTTP
errors, with the most exceptions from the original Bill's list added.
I've attached a git patch to [1] - I'd prefer to contributing this way
if possible. The patch, if approved, can be easily recreated, I used
'git diff master'.

I chose to add a new javax.ws.rs.errors package to minimize the 'noise'
in other packages.

I was not sure about NotAuthorizedException. Many users find the
difference between 401 and 403 confusing. I guess having
NotAuthorizedException won't help in this regard. Perhaps it's better to
leave the security-related exceptions...

After [1] is resolved I can prototype some code to do with the
finer-grained client-only exceptions

Sergey

[1] http://java.net/jira/browse/JAX_RS_SPEC-195