I have to test two scenarios when due to some action unexpected 400 and 500 server errors have been thrown and the proper message appeared on the client for each of the errors.
When I try to edit the request via Fiddler and send it to server, I receive a correct error and everything is good on a server side. But editing and resending request is not affecting a client side, which make it's difficult to verify the full requirement.
Is there a way to simulate 400 and 500 server errors that will affect UI at the same time?