Closed RomitGandhi07 closed 4 years ago
(def a "https://en.wikipedia.org/api/rest_v1/page/summary/The_glass_bead_game") (client/get a)
I have tried this but it isn't handling 404 requests, is there any way to handle it?
Yes, there are many ways to handle it, please see: https://github.com/dakrone/clj-http#exceptions
(def a "https://en.wikipedia.org/api/rest_v1/page/summary/The_glass_bead_game") (client/get a)
I have tried this but it isn't handling 404 requests, is there any way to handle it?