Skip to content

Commit

Permalink
ported: domaindrivendev#2852, adds additional 5xx error responses
Browse files Browse the repository at this point in the history
  • Loading branch information
Havunen committed May 5, 2024
1 parent 357b60c commit 6038bdb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,10 @@ private OpenApiMediaType CreateResponseMediaType(Type type, SchemaRepository sch
new KeyValuePair<string, string>("429", "Too Many Requests"),
new KeyValuePair<string, string>("4\\d{2}", "Client Error"),

new KeyValuePair<string, string>("501", "Not Implemented"),
new KeyValuePair<string, string>("502", "Bad Gateway"),
new KeyValuePair<string, string>("503", "Service Unavailable"),
new KeyValuePair<string, string>("504", "Gateway Timeout"),
new KeyValuePair<string, string>("5\\d{2}", "Server Error"),
new KeyValuePair<string, string>("default", "Error")
};
Expand Down

0 comments on commit 6038bdb

Please sign in to comment.