Registration HTTP status code fix for release

Mirror of #2521