According to this reference, PHPUnit can trigger a callback when an assertion fails. This could allow us to log additional detail (such as the response payload, or errorId and CF-Ray ID) when the API responds with an error unexpectedly. Such an outcome would be much more valuable than just "Failed asserting that 500 matches expected 201", as per this test run.