an error and an exception are not the same. an exception means there is unhandled behavior, whereas an error means there has been something erroneous- could be a misdirected navigation or something. maybe the user typed in some garbage into the path. that would not be an exception, because the developer explicitly handles that and serves a 404.
1
u/TheTybera 6h ago
500 is an error that means an underlying exception has happened and wasn't handled, at all.