When extracting a part from a request or response using *.Of, and the part doesn't exist, an appropriate Exception is thrown.
Example: Using Body.Of on a response that doesn't contain a body should throw an InvalidOperationException with a message like "Body not found"
Expected Behavior
When extracting a part from a request or response using *.Of, and the part doesn't exist, an appropriate Exception is thrown. Example: Using Body.Of on a response that doesn't contain a body should throw an InvalidOperationException with a message like "Body not found"
Actual Behavior
a generic KeyNotFoundException is thrown
Mention any other details that might be useful
all *.Of classes are probably affected by this
Steps to reproduce the behavior
The log given by the failure.