Add return code to task/process pages

Reviewed at https://reviews.apache.org/r/20394/