if @event.destroy
      head :no_content
    else
      errors =
        @event.errors.full_messages.map do |message|