allow additional status codes through constructor

Resubmitted from https://github.com/cakephp/cakephp/pull/2650 on 2.5 branch.