@staticmethod<EOL><INDENT>def get_status(dom):<DEDENT>
status = {}<EOL>status_entry = OneLogin_Saml2_Utils.query(dom, '<STR_LIT>')<EOL>if len(status_entry) != <NUM_LIT:1>:<EOL><INDENT>raise OneLogin_Saml2_ValidationError(<EOL>'<STR_LIT>',<EOL>OneLogin_Saml2_ValidationError.MISSING_STATUS<EOL>)<EOL><DEDENT>code_entry = OneLogin_Saml2_Utils.query(dom, '<STR_LIT>', status_entry[<NUM_LIT:0>])<EOL>if len(code_entry) != <NUM_LIT:1>:<EOL><INDENT>raise OneLogin_Saml2_ValidationError(<EOL>'<STR_LIT>',<EOL>OneLogin_Saml2_ValidationError.MISSING_STATUS_CODE<EOL>)<EOL><DEDENT>code = code_entry[<NUM_LIT:0>].values()[<NUM_LIT:0>]<EOL>status['<STR_LIT:code>'] = code<EOL>status['<STR_LIT>'] = '<STR_LIT>'<EOL>message_entry = OneLogin_Saml2_Utils.query(dom, '<STR_LIT>', status_entry[<NUM_LIT:0>])<EOL>if len(message_entry) == <NUM_LIT:0>:<EOL><INDENT>subcode_entry = OneLogin_Saml2_Utils.query(dom, '<STR_LIT>', status_entry[<NUM_LIT:0>])<EOL>if len(subcode_entry) == <NUM_LIT:1>:<EOL><INDENT>status['<STR_LIT>'] = subcode_entry[<NUM_LIT:0>].values()[<NUM_LIT:0>]<EOL><DEDENT><DEDENT>elif len(message_entry) == <NUM_LIT:1>:<EOL><INDENT>status['<STR_LIT>'] = OneLogin_Saml2_Utils.element_text(message_entry[<NUM_LIT:0>])<EOL><DEDENT>return status<EOL>
Gets Status from a Response.

:param dom: The Response as XML
:type: Document

:returns: The Status, an array with the code and a message.
:rtype: dict