Is it possible to throw a http error in vanilla js outside of a request?
throw Error()
is not enough as it simple shows "unhandled exception" in console