corrected network error codes processing for ApiError