def __init__(self, http_status, errors_payload):
self.http_status = http_status<EOL>self.errors = [munchify(error_envelope['<STR_LIT:error>'])<EOL>for error_envelope in errors_payload['<STR_LIT>']]<EOL>self.logref = errors_payload['<STR_LIT>']['<STR_LIT>']<EOL>message = "<STR_LIT:\n>".join([str(error) for error in self.errors])<EOL>super(BaseError, self).__init__(message)<EOL>
:param int http_status: Http status code.
:param dict errors_payload: Json decoded payload from the errors response.