Added code for specify_class extension and for rcode=refused in response