Class Status


public class Status extends Object
Commonly used status codes defined by HTTP, see HTTP/1.1 documentation. Additional status codes can be added by applications by call create(int) or create(int, String) with unknown status code, or with text that differs from the predefined status codes.

Although the constants are instances of this class, they can be compared using instance equality, as the only way to obtain an instance is through methods create(int) create(int, String), which ensures the same instance is returned for known status codes and reason phrases.

A good reference is the IANA list of HTTP Status Codes (we may not cover all of them in this type): IANA HTTP Status Codes