Changed APIError representation in cases where no error code exists