Raise InvalidContentType if invalid content type and requet body given
Raise InvalidParameter for invalid request parameter