Make sample easier to ready. Return proper error to client instead of log.