Allow passing an Int code to content error state

This allows us to error on codes other than 400.