Moved the response code stuff out to ResponseUtils