Add helper function to set HTTP status