runemadsen/HTTP-Requests-for-Processing

Response Code

Opened this issue · 1 comments

Dear, I would like to know how I could insert a variable of the integer type to receive the response code of the request that was made. I thank the attention

Solution:
int statusCode = response.getStatusLine().getStatusCode();