Specs & Raise error fix & Content-Type header added

* specs for all models
* fix for raising error
* content type header added (required for token request)