better error management for pricing api