Got both of these error messages, which included the red dash brake light on as well. the errors went away after replacing both my rear brakes (~46k miles). i did not change the front brakes.
My guess it has to do with the brake fluid sensor indicating it has reached too low of a level (due to...