Added Exception for Wrong and Conflict inupts

Added JSON Response for Wrong and Conflict inputs