Add the default callback function of ajax

* Add two test view of 401 and 403
Merge pull request #1 from lemonlatte/master

Add the default callback function of ajax