adding utilities for setting the response and responsestatus