Provide method to get response code.