My 2017 tax return was rejected. However I do not have the email (due to hacking) with the rejection code. Is there another way to find the code in order to amend return?

How do I find rejection code for previous year return?