Java Constants and Exceptions to represent HTTP Status Codes.
HTTP/1.1 - Section 10: Status Code Definitions
An HTTP Status Code to Report Legal Obstacles
Constants are defined in HttpStatus. Exceptions are organized into packages (with common base classes), which are all documented.