refactor, move message building to core

2 jobs for !184 with improve-response-messages in 28 minutes and 34 seconds (queued for 4 seconds)
merge request
Name Stage Failure
failed
trigger-trusted-tests Review
Pipeline has been in state 'running' for 27.6 min, waiting for completion
Pipeline has been in state 'running' for 27.8 min, waiting for completion
Pipeline has been in state 'running' for 27.9 min, waiting for completion
Pipeline has been in state 'running' for 28.1 min, waiting for completion
Pipeline has been in state 'failed' for 3 sec, waiting for completion
Pipeline completed in state failed in 28.1 min
Pipeline status is not 'success', exiting with error status
Cleaning up file based variables
ERROR: Job failed: exit code 1