when error raised, response body will include error message in json format