title: Play Framework - define 404 page for assets
body: <p>I'm using Play 2.3 (Java) framework and I want to set a 404 page.
  I know about onHandlerNotFound method of GlobalSettings.</p>
  
  <p>But assets seem to have their own handling - Assets class doesn't call my onHandlerNotFound method, only sends empty 404 status.</p>
  
  <p>Can I somehow intercept errors in Assets and set my own handling?</p>
  
  <p>It seems to me rather limiting that any asset that doesn't exist returns empty 404 page.</p>
  
  <p>Thanks for any advice.</p>
  
  <p>Edit: some code
  From routes:</p>
  
  <pre><code>GET     /assets/*file               controllers.Assets.at(path="/public", file)
  </code></pre>
  
  <p>From GlobalSettings:</p>
  
  <pre><code>@Override
  public Promise&lt;Result&gt; onHandlerNotFound(RequestHeader arg0) {
     return Promise.&lt;Result&gt;pure(Results.notFound(
        errPage("notfound")));
  }
  </code></pre>