Replace StatusCode annotations with constructor parameters.