Pass server result to callbacks and return/throw appropriately