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

From: Sergey Beryozkin <>
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 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