Fix missing info logs for API responses that were successful (2xx) but not OK (200)

The HTTP Client status returns ok = true if the status code is 200. If the status code is 201 (created), 204 (deleted), etc then ok = false.

When using the successful bool, any 2xx status code will return true so logs are captured properly.

Before this fix, any DELETE API requests were not logged, and possibly others.

Edited by Jeff Martin

Merge request reports

Loading