Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Backend
/
URLSession
`data(for:)` returns without throwing and the response status is 500. Which interpretatio…
from URLSession
Swift 6.3.3
intermediate
1 min
`data(for:)` returns without throwing and the response status is 500. Which interpretation is correct?
Transport completed, but the client must treat the HTTP status according to the endpoint contract.
URLSession has already classified the operation as successful.
JSONDecoder will automatically turn the status into an Error.
Check
Ask AI about this kata
Report an error
previous kata
Spot the bug in the URLSession user loader
Spot the bug
A new version is available
Reload