extend RequestResponse with useful utility functions.