Login  Register

how to check for the statusCode

Posted by Pharo Smalltalk Users mailing list on Sep 28, 2020; 6:34pm
URL: https://forum.world.st/how-to-check-for-the-statusCode-tp5122639.html

Hello,

Sorry for asking so much questions but I lost the big picture right now.

Im trying to get the response object back from a api call.

That I can do with :

` response := ZnEasy get: url. `

and I see that it has the fields statusline which has the field code

I thought I could use it like this :  response at: #statusline `
but that give me a error message that  indexes needs to be integers.

How do I get the code field again ?

Roelof