Add exposed method to custom override HTTP response status code.

This replaces the less elegant mechanism previously used.