Handle redirects and error / info reporting.
Redirect the connection and report errors / info
Redirect the connection and report errors / info.
If you are using Phoenix, the error / info messages will be displayed on the screen - using Phoenix flash.