Better pattern for returning responses