How to return custom status codes from live views?

Maybe this thread could be of help?