getPhrase

fun getPhrase(statusCode: <Error class: unknown class>): String

Looks up the stock HTTP description of @status_code.

There is no reason for you to ever use this function. If you wanted the textual description for the property@Message:status-code of a given class@Message, you should just look at the message's property@Message:reason-phrase. However, you should only do that for use in debugging messages; HTTP reason phrases are not localized, and are not generally very descriptive anyway, and so they should never be presented to the user directly. Instead, you should create you own error messages based on the status code, and on what you were trying to do.

Return

the (terse, English) description of @status_code

Parameters

statusCode

an HTTP status code