Question: I'm wondering if there is an enum type in some standard Java class library that defines symbolic constants for all of the valid HTTP response codes. It should support conversion to/from the corresponding integer values.

I'm debugging some Java code that uses `javax.ws.rs.core.Response.Status`. It works, but it only defines about half of the valid HTTP response codes.

Answer: 
Well, there are static constants of the exact integer values in the [HttpURLConnection](http://java.sun.com/javase/6/docs/api/java/net/HttpURLConnection.html) class
Another option is to use `HttpStatus` class from the Apache commons-httpclient which provides you the various Http statuses as constants.