statusCode

The HTTP status code parsed from responseFile, or null if the file name does not match the expected {endpointId}-{statusCode}[-{suffix}].json format.

Computed on each access by delegating to parseStatusCode — the single source of truth for status-code extraction from response file names.

val state = EndpointMockState.Mock(responseFile = "getUser-404-simple.json")
println(state.statusCode) // 404