old_contents: from BeautifulSoup import *
  import exception
  
  def auth_fail(response, **kwargs):
  
  	code    = response['http_code']
  	message = 'Authentication failed - incorrect username and/or password'
  
  	raise exception.PyAemException(code, message)
  
  
  def method_not_allowed(response, **kwargs):
  
  	code    = response['http_code']
  	soup    = BeautifulSoup(response['body'])
  	message = soup.p.string	
  
  	raise exception.PyAemException(code, message)
  
  
  def unexpected(response, **kwargs):
  
  	code    = response['http_code']
  	message = 'Unexpected error'
  
  	raise exception.PyAemException(code, message)
new_contents: from BeautifulSoup import *
  import exception
  
  def auth_fail(response, **kwargs):
  
  	code    = response['http_code']
  	message = 'Authentication failed - incorrect username and/or password'
  
  	raise exception.PyAemException(code, message)
  
  
  def method_not_allowed(response, **kwargs):
  
  	code    = response['http_code']
  	soup    = BeautifulSoup(response['body'])
  	message = soup.p.string	
  
  	raise exception.PyAemException(code, message)
  
  
  def unexpected(response, **kwargs):
  
  	code    = response['http_code']
  	message = 'Unexpected response http code {0} and body\n{1}'.format(response['http_code'], response['body'])
  
  	raise exception.PyAemException(code, message)
subject: Update unexpected handler message, with http code and body.