api: finish status function

Closes globocom/tsuru#332.