title: Handle "Missing CSRF token" play framework
body: <p>I want to handle "Missing CSRF Token" error in play framework.</p>
  
  <p>I followed the documentation:</p>
  
  <p>Added following to the application.conf:</p>
  
  <pre><code>csrf.error.handler=controllers.ErrorController
  </code></pre>
  
  <p>And added that class in package controllers:</p>
  
  <pre><code>package controllers;
  
  import models.Message;
  import play.Logger;
  import play.data.Form;
  import play.mvc.Controller;
  import play.mvc.Result;
  import views.html.error;
  
  public class ErrorController implements play.filters.csrf.CSRFErrorHandler {
      @Override
      public Result handle(String s) {
          Logger.error("Handl error: " + s);
          return Controller.ok(error.render(Form.form(Message.class), "Fehler aufgetreten!"));
      }
  }
  </code></pre>
  
  <p>I'm using playframework 3.9</p>
  
  <p>Every help is appricated
  Kind Regards!</p>