json message returned in case of failure