tapis-project / pods_service

Network Accessible Pods API.
https://tapis.readthedocs.io/en/latest/technical/pods.html
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

KG 0.46 - Catch error messages to other users' http apis. #26

Open NotChristianGarcia opened 1 year ago

NotChristianGarcia commented 1 year ago

Traefik allows error message middleware. If we combine this with users' http api, we could check on the health of the pod and give informative information regarding the service.

For example, if someone attempts to access service and it returns a 404, we could intercept and check the health of the pod. If the pod is supposed to be set to off, we can state that. Otherwise we can say there's a problem.

This could be extended to TCP. Unsure.