How to return custom status codes from live views?

Searching the forum I found this. It should help with what you are trying to do.