title: Webhook POSTing to my rails app, how should controller respond?
body: <p>I have a Mandrill web hook set up so that every time my app tries to send an email to an invalid address, Mandrill will send a POST to my app with the error.</p>
  
  <p>I have set up a model/controller to capture this post as a EmployeeDataError class.</p>
  
  <p>My question is, since Mandrill is just sending a POST to my app with no need to go elsewhere, should the controller action even have a respond_to block? What the create action currently responds with is just what came from the Rails scaffold, but this respond_to block seems suited for a user on my site and not an external service.</p>
  
  <pre><code>  def create
      employee = Employee.find_by_email(params[:email])
      @employee_data_error = EmployeeDataError.new(employee_id: employee.id)
  
      respond_to do |format|
        if @employee_data_error.save
          format.html { redirect_to @employee_data_error, notice: 'Employee data error was successfully created.' }
          format.json { render action: 'show', status: :created, location: @employee_data_error }
        else
          format.html { render action: 'new' }
          format.json { render json: @employee_data_error.errors, status: :unprocessable_entity }
        end
      end
    end
  </code></pre>