normalize errors and add .error(msg, ...) as BadRequest