Mocking Http-503 for a web service -


i mock web service response http 503 (error 503--service unavailable) when server unable handle request due temporary overloading or maintenance of server. best strategy? thanks, d

you can use following groovy script:

mockrequest.gethttpresponse().senderror(503) 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -