def custom_response(msg, content_type, content_bytes):
    '''Respond with :content_type: using :content_bytes:.'''
    msg.set_status(Soup.Status.OK)
    EosCompanionAppService.set_soup_message_response_bytes(
        msg, content_type, content_bytes)
def jpeg_response(msg, image_bytes):
    '''Respond with image/jpeg bytes.'''
    msg.set_status(Soup.Status.OK)
    EosCompanionAppService.set_soup_message_response_bytes(
        msg, 'image/jpeg', image_bytes)