Regulations Governing Visiting, Residency, and Permanent Residency of Aliens Article 23

Any foreign national who cannot be deported due to the refusal of the country issuing his/her passport or other countries to receive him/her, any critical illness or any other special reason, may be issued a provisional alien registration certificate with restrictions on his/her place of residence or other conditions.
中文原文 外國人停留居留及永久居留辦法第23條
外國人因原發照國家或其他國家拒絕接納其入國、罹患重大疾病或其他特殊原因而無法執行強制驅逐出國者,得在限定其住居所或附加其他條件後,核發臨時外僑登記證。

English translation for reference only; the Chinese text prevails. Not legal advice.