Fixed a bug in error request code
Fixed packet handling for error requests
Fixed response check for error request packet handling