Add support for validation and 400 responses