I have setup a toast to show when I get an error response from the server but for some reason it is not showing up when the error event fires. I added a button to manually test if the toast works and it does.
Hello, entering wrong user details trigger an unauthorized error.
So you should use the Unauthorized dynamic events to run actions, based on such errors.