Allow for setting the response text and code