Package wtf :: Package app :: Module http_response :: Class InternalServerError
[hide private]
[frames] | no frames]

Class InternalServerError

source code

              object --+            
                       |            
exceptions.BaseException --+        
                           |        
       exceptions.SystemExit --+    
                               |    
                    HTTPResponse --+
                                   |
                                  InternalServerError

500 Internal Server Error (RFC 2616)
Instance Methods [hide private]
tuple
init(self, admin=None)
Add optional admin address
source code

Inherited from HTTPResponse: __init__, body, headers

Inherited from exceptions.SystemExit: __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __repr__, __setattr__, __setstate__, __str__, __unicode__

Inherited from object: __format__, __hash__, __reduce_ex__, __sizeof__, __subclasshook__

Class Variables [hide private]
str message = '<p>The server encountered an internal error or\nmis...
Message template
str reason = 'Internal Server Error'
HTTP response reason phrase
int status = 500
HTTP response status

Inherited from HTTPResponse (private): _FRAME

Instance Variables [hide private]

Inherited from HTTPResponse: param

Inherited from HTTPResponse (private): _content_type, _escaped, _replace

Properties [hide private]

Inherited from exceptions.SystemExit: code

Inherited from exceptions.BaseException: args

Inherited from object: __class__

Method Details [hide private]

init(self, admin=None)

source code 
Add optional admin address
Parameters:
  • admin (str) - The optional admin contact address
Returns: tuple
Tuple of unescaped and escaped parameters ((dict, dict))
Overrides: HTTPResponse.init

Class Variable Details [hide private]

message

Message template
Type:
str
Value:
'''<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,%(admin)s and inform them o\
f the
time the error occurred,
and anything you might have done that may have
caused the error.</p>
...