When the response has not a 20X return code an exception is raised wich so it seams that I can't acces to the body of my response anymore.
In my case, in some scenario the API will return me a 403 with a message in the body explaining why the action is forbidden.
How can I recover this message if an exception is thrown ?
When the response has not a 20X return code an exception is raised wich so it seams that I can't acces to the body of my response anymore. In my case, in some scenario the API will return me a 403 with a message in the body explaining why the action is forbidden.
How can I recover this message if an exception is thrown ?