// This function is called if the request encounters an error.
// You can handle the error here, for example, display an error message to the user.
// window.location.reload();
// This function is called if the request encounters an error.
// You can handle the error here, for example, display an error message to the user.