Bug Fix: Check the correctness of request type and ID only if the response has no error code.