Refactoring response to use HttpStatusCode instead of an int