'Upon receiving an error from the API client raises an "invalid"
form validation error with a predefined error message.'

def akismet_error(self, parameters, exception=None):

    raise forms.ValidationError(self.akismet_error_message, code='invalid')
