fix(client): handle error responses with detailed messages #287

Merged
argoyle merged 1 commits from fix/client-error-handling into main 2025-07-01 08:25:47 +00:00
argoyle commented 2025-07-01 06:27:54 +00:00 (Migrated from gitlab.com)

Adds error handling for non-OK HTTP status codes in the client.
Implements custom error messages by reading the response body
when the status code indicates an error, ensuring better
debugging and clarity during failures.
Enhances unit tests to cover unauthorized access and incorrect
body length scenarios, validating the error handling mechanism.

Adds error handling for non-OK HTTP status codes in the client. Implements custom error messages by reading the response body when the status code indicates an error, ensuring better debugging and clarity during failures. Enhances unit tests to cover unauthorized access and incorrect body length scenarios, validating the error handling mechanism.
argoyle commented 2025-07-01 06:28:06 +00:00 (Migrated from gitlab.com)

added 2 commits

  • a6450faf - 1 commit from branch main
  • 44c05fec - fix(client): handle error responses with detailed messages

Compare with previous version

added 2 commits <ul><li>a6450faf - 1 commit from branch <code>main</code></li><li>44c05fec - fix(client): handle error responses with detailed messages</li></ul> [Compare with previous version](/unboundsoftware/gitlab-cleanup-handler/-/merge_requests/283/diffs?diff_id=1407750354&start_sha=ef3266543f0eb00ac5197e98545022722937f00c)
argoyle (Migrated from gitlab.com) scheduled this pull request to auto merge when all checks succeed 2025-07-01 06:28:15 +00:00
argoyle (Migrated from gitlab.com) merged commit into main 2025-07-01 08:25:47 +00:00
Sign in to join this conversation.