Added proper json objects to auth and response codes