Refine get_delivery_status error handling