Forcing content type on the sendErrorResource the same way the sendResource works.