StatusCode

class tomcatmanager.models.StatusCode

An enumeration of the various Tomcat Manager web application status codes

tomcatmanager uses the excellent requests library, which uses a custom LookupDict class to store HTTP status codes in a dictionary. After much debate on whether we should do it the requests way, or a more pythonic way, I chose to use a native Enum class instead.

OK = 'OK'
FAIL = 'FAIL'
NOTFOUND = 'NOTFOUND'
parse = <bound method StatusCode.parse of <enum 'StatusCode'>>