Allow customization of response and result classes