You asked

Which camera should I buy to use my existing lens for portraits under 500 euros?

The guide can't tell which lens you own, and lenses only fit cameras of their own mount, so check your lens's mount first. For portraits, the lens matters more than the body. If you already have a good portrait lens, any body below will do the job, and the portraits page's advice on the lenses still applies.

Under 500 euros, the guide's value picks are:

If your lens is a Pentax K or Canon EF lens, these three won't fit it directly, so tell the guide which mount you have. The guide can then narrow the picks down to cameras that take your lens.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.