title: Set one ProducesResponseType typeof for several HttpStatusCodes
body: <p>I am setting the ProducesResponseType so as to have it documented with Swagger.</p>
  
  <p>If the response is succesful (OK => 200), then it produces a IEnumerable.</p>
  
  <pre><code>[ProducesResponseType(typeof(IEnumerable&lt;MyModel&gt;), 200)]
  </code></pre>
  
  <p>But when I get an exception, I catch it, and then generate an object of my custom APIError class. When I populate the object, I can set different HttpStatusCodes, but in the end, what I want is to be able to set that ProducesResponseType is my APIError class for all the remaining HttpStatusCodes. I mean, I can get BadRequest, ServerInternalError, Forbidden, etc, but all are going to have the same response type (ApiError). Is there any way to set this line of code for all the error http codes? Or do I need to set it one by one?</p>
  
  <pre><code>[ProducesResponseType(typeof(ApiError), ???)]
  </code></pre>
  
  <p>Final result should look like this:</p>
  
  <pre><code>[ProducesResponseType(typeof(IEnumerable&lt;MyModel&gt;), 200)]
  [ProducesResponseType(typeof(ApiError), AllFailureHttpCodes)]
  </code></pre>