title: How to specify defaults for SwaggerResponse and SwaggerResponseExample?
body: <p>Is there a way to specify the default response example in Swagger similar to the <a href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.producesdefaultresponsetypeattribute?view=aspnetcore-6.0" rel="nofollow noreferrer">ProducesDefaultResponseType</a> like this:</p>
  <pre><code>[ProducesDefaultResponseType(typeof(ProblemDetails))]
  </code></pre>
  <p>The Swagger attributes only seem to take the explicitly defined HTTP status codes:</p>
  <pre><code>[SwaggerResponse(HttpStatusCode.BadRequest, Type = typeof(ErrorExample), Description = &quot;Error details&quot;)]
  [SwaggerResponseExample(HttpStatusCode.BadRequest, typeof(ErrorExample))]
  </code></pre>
  <p>Is there a way to get Swagger recognize defaults instead of copying the same information for every HTTP response code?</p>