Yes, it has been already implemented, isn't it?
You can get the response code (success) in a variable.
The SUCCESS code is usually 200, that means True as a boolean value.
The response code is the result of the request. Any value in the 200s means that the call succeeded. In the vast majority of cases the value will be exactly 200.