can someone explain the fields in body of httpoison response
{:ok,
%HTTPoison.Response{body: <<31, 139, 8, 0, 0, 0, 0, 0, 0, 3, 237, 125, 121,
111, 219, 88, 182, 231, 87, 81, 121, 254, 233, 6, 204, 72, 20, 181, 22, 30,
166, 224, 53, 222, 109, 121, 143, 31, 6, 198, 149, 68, 137, 52, 37, 94, 153,
164, ...>>,
headers: [{"Server", "nginx/1.11.4"},
{"Date", "Tue, 10 Oct 2017 23:35:36 GMT"},
{"Content-Type", "application/json; charset=utf-8"},
{"Transfer-Encoding", "chunked"}, {"Connection", "keep-alive"},
{"cache-control", "max-age=300"},
{"x-request-id", "7qcnn88qvaf12tuc2u88nkqoj5odk19v"},
{"Expires", "Tue, 10 Oct 2017 23:40:36 GMT"}, {"Content-Encoding", "gzip"},
{"Access-Control-Allow-Origin", "*"}],
request_url: "https://url",
status_code: code}}
when i decode the body i get
%Diplomat.Proto.Status{
code: 3,
details: [],
message: " ERROR ENCOUNTERED IN CASE OF 4** series errors...\n "
}
please explain these fields code:, details:, message: in the body
i can see that message gives detailed error in case of 4** series http responses but can anyone explain for other status codes