-
-
Save dekz/6e2c0b55416c9abe0b36 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin | |
RestClient.get 'http://bad-url.com/alalalalal' | |
rescue => e | |
raise 'Err' if e.status == 400 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resp = RestClient.get 'http://bad-url.com/alalalalal' | |
raise 'Err' if resp.status == 400 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment