APIError class is added