• erio's avatar
    feat: ErrorPolicySkipped returns 500 instead of upstream status code · 73f45574
    erio authored
    When custom error codes are enabled and the upstream error code is NOT
    in the configured list, return HTTP 500 to the client instead of
    transparently forwarding the original status code.
    
    Also adds integration test TestCustomErrorCode599 verifying that 429,
    500, 503, 401, 403 all return 500 without triggering SetRateLimited
    or SetError.
    73f45574
error_policy_integration_test.go 15.5 KB