scala version of httpstatus(http://blog.64p.org/entry/2013/02/21/121830)