You can e-file your 2023 return through October 15, 2024, but if you e-file after April 15, you may face penalties for filing late, unless you file an extension.
If you e-filed before April 15, 2024, but your return got rejected after the deadline, you have until April 23 to correct the rejection and refile your return to avoid possible penalties.