error handling, removed pet store API