Previously error flags were only handled for R1 responses. This change moves error handling into a separate function and calls it for R1/R3/R7.
Previously error flags were only handled for R1 responses. This change moves error handling into a separate function and calls it for R1/R3/R7.