Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To check the health of a DualShield server provides a health checking endpoint and , visit its URL is "/sso/health"

Healthy

If When the DualShield server is healthy, then it will return HTTP 200 with a response body containing plain text "Code 0"

...

Browser

...

Code

...

Image Added

HTTP/1.1

...

200

...

OK

...


Server:

...

nginx/1.10.2

...


Date:

...

Mon,

...

16

...

Aug

...

2021

...

12:45:14

...

GMT

...


Content-Length:

...

7

...


Connection:

...

keep-alive

...


Set-Cookie:

...

JSESSIONID=6E5F468F94DDF2702A814D507D5771DE;

...

Path=/sso/;

...

HttpOnly

...


 
code:

...

0


Unhealthy

When the DualShield server is not healthy, it will return HTTP 500 with a response body containing plain text "Code n", in which n is an error code

BrowserCode

Image Added

HTTP/1.1 500 Internal Server Error
Server: nginx/1.10.2
Date: Mon, 16 Aug 2021 12:41:59 GMT
Content-Length: 8
Connection: keep-alive
Set-Cookie: JSESSIONID=5887D8F1464938AACFB4F1846B7FB171; Path=/sso/; HttpOnly

code: 16