Creates a reason for closing a web socket connection with the given code and reason phrase.
See Implementation