return custom http responses from a controller?

render is what supplies the response body. There are just more ways
to render then you are aware of. render :text => 'test', render
:file =>file, render_xml, etc..

To set headers do this before rendering:

headers["Content-Type"] = 'mycontenttype'

Chris