Open ivan-kolmychek opened 9 years ago
I think an error would be best, assumptions can be dangerous.
@bethesque I agree - it's better to explicitly point to this error instead of assuming anything (0 or 200), but I just wanted to present other possible solution I've thought about anyway.
I'm not sure where to post it - I encountered it when used pact + pact-mock_service, so, I've decided to post it here.
When you accidentaly forget to specify
status
response option you can get strange result withNet::HTTP
:I see such possible solutions:
0
200
- it's the most common expected response code IMO;