Refactor response.go for easier use