Earning Money on a 404 Error Page?

Hey Guys, I was wondering how I could get money on a 404 error page using a ads? Is is like a free thing or does the company have to pay me?

THANKS IN ADVANCE