You should definitely just return an int. There are plenty of
services that use undefined response codes.
Sam
On Jan 19, 2009, at 7:18 AM, Marc Hadley wrote:
> Another issue is that the HTTP 1.1 defined set of status codes is
> extensible and I wouldn't want to litter the enum with lots of
> unused values just in case someone comes up with some new code or
> class of codes like WebDAV does:
>
> http://www.webdav.org/specs/rfc4918.html#status.code.extensions.to.http11
>
> Maybe we should drop the ClientResponse.getStatus method in favor of
> the alternative that just returns an int ?
>
> Marc.