title: Using @BasePathAware on custom controller and enable RepositoryRestExceptionHandler
body: <p>I have some custom Controllers that add additional endpoints and operations for a service that utilizes Spring Data REST for the base implementation. I've annotated the Controller with <code>@BasePathAwareController</code> to make sure that the controller plays nice with SDR. </p>
  
  <p>What I basically want is to leverage all of the error handling, validation, etc that SDR is providing, and I've build the controller so it calls the ApplicationEventPublisher the same way that the SDR controllers do for the base implementation. One issue is that when validation fails, the response is a 500 status, and instead of a 400 with the details of the validation messages encoded in JSON as I would expect.</p>
  
  <p>I tried using <code>@RepositoryRestController</code> instead of <code>@BasePathAwareController</code>, but that didn't matter. Is there a way to configure the SDR exception handling for my own controllers without copying the code and re-implementing all of the logic?</p>