HTTP Status Code for External Dependency Error

前端 未结 3 928
忘掉有多难
忘掉有多难 2021-02-05 01:45

What is the correct HTTP status code to return when a server is having issues communicating with an external API?

Say a client sends a valid request to my server A, A th

3条回答
  •  时光说笑
    2021-02-05 02:15

    You can refer this link.

    HTTP Status 424 or 500 for error on external dependency

    503 Service Unavailable looks perfect for the situation.

提交回复
热议问题