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: 
I don't think there's one that's complete in the standard Java classes; **[`HttpURLConnection`](http://docs.oracle.com/javase/7/docs/api/java/net/HttpURLConnection.html)** is missing quite a few codes, like `HTTP 100/Continue`. 

There's a complete list in the Apache HttpComponents, though:  

[**`org.apache.http.HttpStatus`**](http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/HttpStatus.html) (replaced [**`org.apache.commons.HttpClient.HttpStatus`**](http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/HttpStatus.html) from Apache Http Client, which reached [end of life](http://hc.apache.org/httpclient-3.x/))
Please see the following enum from the Spring framework which provides all the HTTP response status code

HttpStatus.values()