Adding rest util package to simplify returning errors and implementing basic validation for locale