Added error handling for the API part of CSA