Added global controller exception handler to return JSON erro object
Trying to sort out tab and line ending issues