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

From: Santiago Pericas-Geertsen <>
Date: Tue, 15 May 2012 09:48:55 -0400

Hi Sergey,

 I'm neutral on the proposal to create these exception classes, so I'll go with the majority. I think the package name 'errors' is a bit odd given the existence of the Error class in Java (which isn't an Exception).

-- Santiago

On May 15, 2012, at 6:38 AM, Sergey Beryozkin wrote:

> 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
> Sergey
> [1]