How can i get the error code after execute ResourceLoader.Load()

This topic was discussed in this thread as well, where OP has opened a proposal on Godot GitHub