Axel, thanks for providing some context.
I suppose it is better for me to think of the httptest package as specific to the http package - although this is not explicitly stated: "Package httptest provides utilities for HTTP testing"
This seems misleading as is the case with this '200' default.
I stopped using httptest.NewRecorder() because of the possibility to introduce changes to tests that would make tests pass. Not everyone knows the internals of all the code. Because of this, I think it is risky to have values set by default to the value that causes the test to pass.
Some questions that should not keep us awake at night: The test passed, but will it fail? Will it fail where/how I think it will?
Simon