Why not to create your own custom content-type

I'm using a web service(API) framework that does some magic behind the scene for different content-types requests.

I want to take advantage of that by creating responses like application/verbose+json but the actual content will still be application/json.

I've implemented it, tested it from a jquery.ajax call in chrome and it all works.

Is there a reason this is wrong or might not work in production/long run?

Not relevant to the question but just in case you're wondering about what it's written in: - server side: tastypie(python on django) - client side: javascript/coffeescript on backbone

Answers


Internet Media Types (what you call content types) form a global space of names. If you use a "custom" name, you risk that there'll be future name collisions.

If you really think your custom name is needed, please consider registering it, see http://tools.ietf.org/html/rfc6838 (there are also vendor and personal spaces).


Custom content-type hasn't raised any issue until now in production, so i'll solve this issue by saying it's safe.


Need Your Help

Bigger iOS keyboard with bigger keys

ios uikeyboard

I wanted to know if there is an option to display a bigger keyboard with a bigger font of keys? Can I control the size of the keys?

Theano function that can take input arrays of different shapes in python

python function input theano

In theano, I want to make a function that can take several different inputs, such as both matrices and vectors.