Thank you for your answer.
I could not find the list of rest APIs and possible responses in the shell and UI. (I did not check Promethus)
I'm writing a python client and need to know for example what are the possible responses (and status codes) in result of calling a master to assign a file id?
As an example, I was calling Mater2 which was not the leader in a loop and I shut down the leader and got a lot of 502 status codes (with no tex response) until the next leader was chosen. But the last 502 response took more than 1 minute while the leader was chosen and Master2 was responding to the new requests.
call number | request time | status code | response body
...
257 | 2020-04-15T12:52:34.671863 | 200 | {"fid":"6,01023f7083d2","url":"v1:8080","publicUrl":"v1:8080","count":1}
258 | 2020-04-15T12:52:34.677276 | 200 | {"fid":"7,0103ff768f73","url":"v1:8080","publicUrl":"v1:8080","count":1}
259 | 2020-04-15T12:52:34.726519 | 502 |
...
320 | 2020-04-15T12:52:35.029461 | 502 |
321 | 2020-04-15T12:54:46.055645 | 502 |
322 | 2020-04-15T12:54:46.066174 | 200 | {"fid":"5,01814dc5c55b","url":"v2:8081","publicUrl":"v2:8081","count":1}
323 | 2020-04-15T12:54:46.079558 | 200 | {"fid":"7,01829b8e2bef","url":"v1:8080","publicUrl":"v1:8080","count":1}
...
Is there a document about Master and Volume REST APIs?
Thank you.