Displays modal dialog instead of alert on error from backend

Adds default error message and message for error code 403.