This is a good start. Please see http://redmine.sassafras.coop/issues/1120 for detailed instructions on how to handle errors.