your headline asks how to appeal a building code violation--the jurisdiction enforcing the code likely has an appeal process--likely online, that you can review.
Owners can be held responsible for damage inside the leased property (burst pipes, leaky gas connections, walls, jammed and swelled window frames, pest infestations, bathroom floors/tiles that come loose ceilings, floors that give way, or any of dozens of other issues associated with a building aging and even normal wear and tear.
READ THIS BEFORE CALLING OR EMAILING ME: I am licensed to practice before the state and federal courts in Virginia. We have not established an attorney-client relationship unless we have a signed representation agreement and you have paid me. I give a 100% effort to get you on the right track with your issue. Sometimes that means legal educational information, sometimes that means counseling and non-legal guidance. You should speak with an attorney to whom you have provided all the facts, before you take steps that may impact your legal rights. I am not obligated to answer subsequent emails or phone calls unless you have hired me. I wish you the best of luck with your situation.Ask a similar question
If you wish to appeal a local ordinance violation, you need to contact the municipality and learn about their process. Although the owner may be ultimately liable for whatever violation the village has found, the owner can assess those damages against the tenant.Ask a similar question