Rails has a set of symbols that it maps to HTTP status codes, I find using them makes for more readable code: http://futureshock-ed.com/2011/03/04/http-status-code-symbols-for-rails/