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: 
If you're using Spring, the 3.x release has what your looking for:
<http://static.springsource.org/spring/docs/3.0.x/api/org/springframework/http/HttpStatus.html>
Also check out the Restlet Status class:

<http://www.restlet.org/documentation/1.1/api/org/restlet/data/Status.html>