Getting started with the API: Error handling