TykTechnologies / tyk

Tyk Open Source API Gateway written in Go, supporting REST, GraphQL, TCP and gRPC protocols
Other
9.75k stars 1.09k forks source link

[TT-13226] Add XML error handling for application/soap+xml requests #6602

Open vanny96 opened 1 month ago

vanny96 commented 1 month ago

Branch/Environment/Version

Describe the bug Currently, Tyk returns a JSON response when a request with Content-Type "application/soap+xml" incurs in an error.

Reproduction steps Steps to reproduce the behavior:

  1. Add api
  2. Add basic auth to the api
  3. Call api without authorization and with the Content-Type header set to application/soap+xml

Actual behavior Returns JSON error message

Expected behavior Returns XML error message

andyo-tyk commented 1 month ago

Hi @vanny96,

Thanks for spotting this and for the contribution. We will review this and aim to implement a fix in the product as soon as we have capacity in a release.

Thanks again.