Being rejected is a good thing. It means you are trying.
But it still hurts.
I will pat myself on the back for trying. Finishing is its own success, and my story is a good one, it simply did not fit quite right or have quite the right ending or tone to tickle the fancy of that editor.
And that's okay.
I will read this, perhaps even write it out again, next time I face a rejection, because it will still be true.
Back to work.