Add method to get response code from error interface