code: def check_status(self):
          
          status = OneLogin_Saml2_Utils.get_status(self.document)
          code = status.get('code', None)
          if code and code != OneLogin_Saml2_Constants.STATUS_SUCCESS:
              splited_code = code.split(':')
              printable_code = splited_code.pop()
              status_exception_msg = 'The status code of the Response was not Success, was %s' % printable_code
              status_msg = status.get('msg', None)
              if status_msg:
                  status_exception_msg += ' -> ' + status_msg
              raise OneLogin_Saml2_ValidationError(
                  status_exception_msg,
                  OneLogin_Saml2_ValidationError.STATUS_CODE_IS_NOT_SUCCESS
              )
docs: Check if the status of the response is success or not
  
          :raises: Exception. If the status is not success