Improves api error reporting #110