Check your console/logs. Spring Boot routes to "/error" if an error occurs in application code - either something you wrote, or something that annoyed the Spring Boot support code. So the problem isn't that you went to "error", it's that you had an error.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.