Add support for error/validation errors media type

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
Fix license headers

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>