Braking system for a vehicle, wherein the braking system has a valve device, a first control unit and a second control unit, wherein the control units (310, 320) are electrically connected to the valve device, wherein the valve device has the following features: a valve unit for setting a pressure of a working medium for the braking system, wherein the valve unit has at least one actuator for actuating the valve unit; a valve housing for accommodating the valve unit; and an error protection module which is arranged outside the valve housing, wherein the error protection module has a first supply port for the electrical attachment to the first control unit, a second supply port for the electrical attachment to the second control unit, a first main port for the electrical attachment to the first control unit, a second main port for the electrical attachment to the second control unit, a first connection port, which is electrically connected to the first supply port and to the second supply port, for the electrical connection to the actuator, a second connection port, which is electrically connected to the first main port and to the second main port, for the electrical connection to the actuator, a first electric protective circuit and a second electric protective circuit, wherein the first protective circuit is electrically connected between the first supply port and the second supply port on one side and the first connection port on the other side, characterized in that the second protective circuit is electrically connected between the second connection port on one side and the first main port and the second main port on the other side, wherein at least one of the protective circuits (460, 470) has at least one electrical fuse device (462, 472) and at least one diode element (464, 474) that are connected in series to the respective supply port (441, 442) or main port (445, 446), in that the valve unit has at least one further actuator for actuating the valve unit, wherein the second connection port of the error protection module is electrically connected to the further actuator, wherein the error protection module has at least one third supply port for the electrical attachment to the first control unit, at least one fourth supply port for the electrical attachment to the second control unit, at least one further connection port, which is electrically connected to the third supply port and the fourth supply port, for the electrical connection to the further actuator, and at least one further protective circuit, and in that the further protective circuit is electrically connected between the third supply port and the fourth supply port, on one side, and the further connection port, on the other side. a valve unit for setting a pressure of a working medium for the braking system, wherein the valve unit has at least one actuator for actuating the valve unit; a valve housing for accommodating the valve unit; and an error protection module which is arranged outside the valve housing, wherein the error protection module has a first supply port for the electrical attachment to the first control unit, a second supply port for the electrical attachment to the second control unit, a first main port for the electrical attachment to the first control unit, a second main port for the electrical attachment to the second control unit, a first connection port, which is electrically connected to the first supply port and to the second supply port, for the electrical connection to the actuator, a second connection port, which is electrically connected to the first main port and to the second main port, for the electrical connection to the actuator, a first electric protective circuit and a second electric protective circuit, wherein the first protective circuit is electrically connected between the first supply port and the second supply port on one side and the first connection port on the other side, characterized in that the second protective circuit is electrically connected between the second connection port on one side and the first main port and the second main port on the other side, wherein at least one of the protective circuits (460, 470) has at least one electrical fuse device (462, 472) and at least one diode element (464, 474) that are connected in series to the respective supply port (441, 442) or main port (445, 446), in that the valve unit has at least one further actuator for actuating the valve unit, wherein the second connection port of the error protection module is electrically connected to the further actuator, wherein the error protection module has at least one third supply port for the electrical attachment to the first control unit, at least one fourth supply port for the electrical attachment to the second control unit, at least one further connection port, which is electrically connected to the third supply port and the fourth supply port, for the electrical connection to the further actuator, and at least one further protective circuit, and in that the further protective circuit is electrically connected between the third supply port and the fourth supply port, on one side, and the further connection port, on the other side.