Refactored: normalized http responses