Forum Discussion
kyleshockey
Alumni
7 years agoHi msens, there's no way to do this unfortunately. Swagger UI won't let you "fake" a response when the entire request fails.
If you want this behavior, I suggest putting a load balancer or reverse proxy in front of your server that is capable of sending back HTTP 500 responses when your API server is unavailable.