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: 
The Interface `javax.servlet.http.HttpServletResponse` from the servlet API has all the response codes in the form of `int` constants names `SC_<description>`. See <http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletResponse.html>
If you are using **Netty**, you can use:

* io.netty.handler.codec.http.[**HttpResponseStatus**](http://netty.io/4.0/api/io/netty/handler/codec/http/HttpResponseStatus.html)