Are these responses from top journals just boiler plate? or anything atleast miniscule to salvage from them? thanks for submitting your paper to XXXXX Journal. It is an explicit
and interesting analysis of a natural problem. However, in my
opinion, it does not reach the level of XXXXX Journal. I therefore
have decided not to pursue the evaluation process in order not to
delay the publication of your paper elsewhere.
Please don’t take it too bad, XXXXX Journal receive a lot of very very
strong submissions in every aspect of mathematics and we publish only
700 pages per year, so we have to make some hard choices.
Best regards, XXXXX (Editor-in-chief)


Dear Professor XXXXX,
The XXXXX Journal of XXXXX recently received a very large number of
submissions.  We are also attempting to reduce our publication
backlog. Consequently, the editors are unable to consider every
manuscript for further review.  So we regret to inform you that we
will not be able to publish your manuscript.
We hope that you will submit your paper to a more specialized journal
where your work may be more fully appreciated.
Sincerely,
The Editors XXXXX Journal of XXXXX

Are both of these are just boiler plate or anything to salvage from them. I must say both are really top journals in mathematics.
I think you should treat them as honest statements. They may be boilerplate, of course, since journals often get more submissions than are possible to publish on any reasonable time scale. They therefor have such &quot;boilerplate&quot; ready to ease the editor's work.
The first implies something lacking in the paper itself wrt the standards of that journal, though the paper may have merit otherwise. The second doesn't necessarily imply the same.
But, an exceptional paper, by their standards, would probably be put into the process.
As they suggest, move on with the paper and try for a different venue. Alternatively, improve it dramatically and try again.