Get Status Code from HTTP Request
We won’t go into too much detail about HTTP status codes themselves, but in this post we will talk about how to use the status code after making a request, how to check them as a range and how to print them as text. This is often important so we can check if something was successful or failed.
You can always get this data if you have a net/http/Response type (spec).