In Hemingway's A Farewell to Arms—which I read for the first time only recently, as part of a magpie-like quest, in reaction to current events, to gather various war materials into a single mental lump—there comes a major plot turn when the protagonist decides not to return to active duty at the Italian front, but instead to break for the frontier of neutral Switzerland. He has become, in effect, a deserter (though not a deserter from a proper army, as his paramour Catherine Barkley consolingly reminds him, but "only the Italian army"). And when Barkley and he together make a thrilling run for the border by lake, dodging Swiss and Italian coast guards under peril of interdiction and refoulement to Italy, they have become, in effect, refugees.
Hemingway's protagonist, Lieutenant Frederic Henry, is aware of this—and aware that Switzerland like other nations has been known to jealously guard access to its territory—so he makes inquiries as to what happens to refugees who manage to evade border guards and make it into Switzerland. Careful, he is warned, you will be interned. Lieutenant Henry is aware of this risk, but he asks what it would mean in practice. Are we talking outright detention, with zero freedom of movement? (Think of the concentration camps that would be used decades later in France to jail Spanish Civil War refugees.) No, he is told, nothing like that. He would probably just have to check in with police periodically. In the language of some advocates and official government euphemists, Switzerland circa 1919 apparently favored "community-based alternatives to detention."