結果 : how to catch network error in javascript