resgateio / resgate

A Realtime API Gateway used with NATS to build REST, real time, and RPC APIs, where all your clients are synchronized seamlessly.
https://resgate.io
MIT License
685 stars 67 forks source link

NATS no responders support #222

Closed jirenius closed 2 years ago

jirenius commented 2 years ago

Issue

NATS server v2.2 introduced headers that can be used to post meta-data. More specifically, when a request is sent to NATS on a subject which no service is listening on, it can instantly send back a response with the Status header set to 503, indicating that the request has no responders.

Resgate should support dealing with Status 503 headers, turning them into system.notFound error responses.

Note

jirenius commented 2 years ago

Resolved in PR #224