return 501 when content type is wrong