HTTP status code (e.g. 400, 404, 500).
Optionaltitle: stringShort, human-readable summary. Defaults to a standard phrase for common status codes.
Optionaldetail: stringLonger explanation specific to this occurrence.
Optionalextensions: Record<string, unknown>Extra fields merged into the object (RFC 9457 §3.1).
Create a ProblemDetails object for the given HTTP status code.