Fix for handling error response from authentication provider
Merge branch 'tutysara-handle_errors'