Change logic to use message of response body
Add ID to condition for retrieve the name
Remove unnecessary processing
Add logic to check the id to each processing
Modified to pass the response to when calling an error_exit method