Callback: simplify response code processing