Add 401 view
Improve json view (pretty print in DEBUG)