Fix broken status code

closes #3779
- added custom error classes for OAuth errors (bug was caused by
oauth2orize error classes)
- added basic tests for `/authentication/token` endpoints
Merge pull request #3832 from sebgie/issue#3779

Fix broken status code