 
 		@isAuthorisationErrorPage: (contents) ->
 			/https?:\/\/www\.google\.com\/accounts\/OAuthAuthorizeToken/i.test contents
+
+		@isAuthorisationErrorResponse: (resp) ->
+			resp?.toLowerCase().indexOf "authorization" isnt -1
 
 		checkAuthorised: (resp) ->
 			url = @getServiceURL()

					title: 		__msg 'notificationScheduleSuccessTitle'
					message: 	__msg 'notificationScheduleSuccess'
			else
				@onScheduleError data.error, null, data.error
			return

		createDialog: (title, okButton, cancelButton) ->

				url: 			@getServiceURL()
				dataType: 		'json'
				data:			data
				success:		(resp, textStatus, jqXHR) =>
									@onScheduleSuccess resp, data
									return
				error:			(jqXHR, textStatus, errorThrown) =>
									# log arguments
