[locale] Adds ignoring current locale in setter.
[rest] Adds experimental support for "error hooks".