send error response on incorrect packet