lang support for base rest handler

Test Plan: -

Reviewers: alex, max, mrkonstk

Reviewed By: max

Differential Revision: https://review.crowd-lab.com/D1502