add error message in case of http 500 status code