Q- ERROR AND R CODES