Add response check before decode