4

I have an Azure service bus relay that exposes an on-premise service to external clients. If I hit the on-premise service directly with a particular request (a REST request for resource that doesn't exist), I get a 'HTTP/1.1 204 No Content' response which I like.

When the same request is fired via the Azure relay, a 'HTTP/1.1 502 Bad Gateway' which I don't like because the client code treats this as an error (whereas it silently ignores a 204).

Any suggestions?

user381624
  • 676
  • 1
  • 5
  • 21

1 Answers1

0

An ugly way could be manually redirecting the non-existing content to a custom 204 message page, haven't tested this and best case would be a temporary solution until you can get the proper response to work.

Melis
  • 111
  • 9