set response.status after pipeline completes