I am using ruby ( and don't want to use the sdk) to access the core API and to authenticate the user. In that process it is said in the documentation that I should handle the API errors included directly in the body of the response. ("Errors are returned using standard HTTP error code syntax. Any additional info is included in the body of the return call, JSON-formatted.")
Can anyone guide to the proper way to access and extract that error code?