of

fun of(code: Int): Status(source)

Resolves a numeric status code to the matching enum entry.

This exists so runtime integrations can convert framework-specific status values back into the same Status instances used by endpoint definitions.