Sorry Claudio, I still do not understand what you are saying.
Anyway, in the earlier Gantry 5 versions, jQuery couldn't be loaded on the Error page.
But now it can. And it is loaded on your Error page. Have a look at
this video that I recorded for you, it shows what I mean.
The problem with Error page is the following - all Joomla extensions have their own assets (CSS and JS).
Those assets are loaded on all pages where the particular extension is being published.
But those assets cannot be loaded on the Error page. The Joomla extensions cannot load their CSS and JS on the Error page. This is simply how Joomla works.
Even if you have published an extension on "All Pages", it cannot load its assets on the Error page (even though it is shown on the Error page).