Core: Add param for user to provide customer responseTransformer

Current case only handles success response, allow users to handle
error responses as valid responses