fn map_error(err: ApiError) -> Status
Convert ApiError to tonic::Status with proper status code mapping