Auto-translated
Perhaps the encoding is incorrect. This happens if you typed it in Notepad. You need to save it in Unicode.
I suspect that the function name should be without quotes:
function Zasada1 (heroname)
502 Bad Gateway
__________________________________
nginx/0.8.54
__________________________________
nginx/0.8.54