Update errors with documentation and prefix

Prefix our private error messages with "layouts: " in order to make
it more clear where the error is coming from.