added http status code in api, added /user/info api endpoint