added error when trying to post using incorrect Content-Type