---
title: URLSessionWebSocketTask.CloseCode.internalServerError
framework: foundation
role: symbol
role_heading: Case
path: foundation/urlsessionwebsockettask/closecode-swift.enum/internalservererror
---

# URLSessionWebSocketTask.CloseCode.internalServerError

A code that indicates the server terminated the connection because it encountered an unexpected condition.

## Declaration

```swift
case internalServerError
```

## See Also

### Close codes

- [URLSessionWebSocketTask.CloseCode.abnormalClosure](foundation/urlsessionwebsockettask/closecode-swift.enum/abnormalclosure.md)
- [URLSessionWebSocketTask.CloseCode.goingAway](foundation/urlsessionwebsockettask/closecode-swift.enum/goingaway.md)
- [URLSessionWebSocketTask.CloseCode.invalid](foundation/urlsessionwebsockettask/closecode-swift.enum/invalid.md)
- [URLSessionWebSocketTask.CloseCode.invalidFramePayloadData](foundation/urlsessionwebsockettask/closecode-swift.enum/invalidframepayloaddata.md)
- [URLSessionWebSocketTask.CloseCode.mandatoryExtensionMissing](foundation/urlsessionwebsockettask/closecode-swift.enum/mandatoryextensionmissing.md)
- [URLSessionWebSocketTask.CloseCode.messageTooBig](foundation/urlsessionwebsockettask/closecode-swift.enum/messagetoobig.md)
- [URLSessionWebSocketTask.CloseCode.noStatusReceived](foundation/urlsessionwebsockettask/closecode-swift.enum/nostatusreceived.md)
- [URLSessionWebSocketTask.CloseCode.normalClosure](foundation/urlsessionwebsockettask/closecode-swift.enum/normalclosure.md)
- [URLSessionWebSocketTask.CloseCode.policyViolation](foundation/urlsessionwebsockettask/closecode-swift.enum/policyviolation.md)
- [URLSessionWebSocketTask.CloseCode.protocolError](foundation/urlsessionwebsockettask/closecode-swift.enum/protocolerror.md)
- [URLSessionWebSocketTask.CloseCode.tlsHandshakeFailure](foundation/urlsessionwebsockettask/closecode-swift.enum/tlshandshakefailure.md)
- [URLSessionWebSocketTask.CloseCode.unsupportedData](foundation/urlsessionwebsockettask/closecode-swift.enum/unsupporteddata.md)
