if (ResponseCode::HTTP_BAD_REQUEST == $responseStatusCode) { throw new WrongExpectedVersionException(); }
However, while running against an EventStore cluster Guzzle is failing to redirect properly and returning 500. By not handling this, it looked like the write call was successful when it was not.
The only error check is:
if (ResponseCode::HTTP_BAD_REQUEST == $responseStatusCode) { throw new WrongExpectedVersionException(); }
However, while running against an EventStore cluster Guzzle is failing to redirect properly and returning 500. By not handling this, it looked like the write call was successful when it was not.