Yes , it would be like 

handleFailedAPI(resp, gettext("Error deleting"), "deleted");

right ?