def __str__(self):
error_message = "<STR_LIT>""<STR_LIT>".format(self.status, self.reason)<EOL>if self.headers:<EOL><INDENT>error_message += "<STR_LIT>".format(self.headers)<EOL><DEDENT>if self.body:<EOL><INDENT>error_message += "<STR_LIT>".format(self.body)<EOL><DEDENT>return error_message<EOL>
Custom error messages for exception