title: How do I set ProducesResponseType for all controllers in my app?
body: <p>I have middleware that handles all unhandled exceptions and returns </p>
  
  <pre><code>public class ErrorResponseModel { 
    public string ErrorMessage { get; set; } 
  }
  </code></pre>
  
  <p>I like to add <code>[ProducesResponseType(typeof(ErrorResponseModel), 500)]</code> to all my controllers, but I don't understand how to do it once (w/o duplicating or introducing base class for all my controllers).</p>