Error handling in API Post and Get
implement error handling in the functions apiPost and apiGet such as
- HTTP errors (return codes <> 200)
- API errors (such as API key unknown in session opening)
implement error handling in the functions apiPost and apiGet such as