How to use badRequest in a custom service context?

The service should not have access to the ctx/context object. This is the controller’s responsibility. I think the best way would be to throw an error from the service, catch it in the controller, and then use ctx.BadRequest when catching the error.