(self, status_line)
Get http status code from http status line.
        Status-Line = HTTP-Version Status-Code Reason-Phrase CRLF
Get http status code from http status line.
        Status-Line = HTTP-Version Status-Code Reason-Phrase CRLF
Get http status code from http status line . Status - Line = HTTP - Version Status - Code Reason - Phrase CRLF
def get_status_code(self, status_line):
        """
        Get http status code from http status line.
        Status-Line = HTTP-Version Status-Code Reason-Phrase CRLF
        """
        try:
            return int(status_line.split(' ')[1])
        except ValueError:
            return 400
        except IndexError:
            return 404
def get_status_code ( self , status_line ) : try : return int ( status_line . split ( ' ' ) [ 1 ] ) except ValueError : return 400 except IndexError : return 404