To display the contents of the message context variable you made, just call upon it in similar fashion to the request, ${request.mainpart}. For example: ${<variablename>.mainpart}. Although if you encrypted it, you may need to decrypt first depending on the use case.
Also you can select a custom response to be sent to an endpoint in your route assertion. (Example below)