Moving content type validation out of init so we can still manually use the resource in POST requests.