How to create Server down(500) exception in Rest API for Testing
Application Type
Traditional Web
Service Studio Version
11.10.20 (Build 41361)
Platform Version
11.11.2 (Build 29611)

Hi all, 

I have Rest API so whenever the server is down API throws (server down exception 500), so implemented the logic to handle that exception, for testing purpose I need to rise that 500 exceptions in my API call, how to do it, any one can help out of it with any examples.

Thanks

additional to Samiksha her answer, you might want to take a look at https://www.linkedin.com/pulse/handling-http-status-codes-when-consuming-rest-rui-barbosa/.

regards Hans


additional to Samiksha her answer, you might want to take a look at https://www.linkedin.com/pulse/handling-http-status-codes-when-consuming-rest-rui-barbosa/.

regards Hans


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.