An inevitable moment in every search process is receiving a rejection message. Responding productively can be a smart move and sometimes even open future opportunities or feedback.
Here are some examples for what you might write: https://resumeworded.com/networking-email-templates/misc/how-to-respond-to-a-rejection-email