fix(auth): make auth error responses json

SD-312