error handling section added for ID-Based Json API