|
|
|
@ -17,6 +17,11 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
/// @retun The severity octet of the given status code.
|
|
|
|
|
+ (NSUInteger)severityFromStatusCode:(PEPTransportStatusCode)statusCode;
|
|
|
|
|
|
|
|
|
|
/// Is the given status code an error?
|
|
|
|
|
/// @note A transport emitting this is supposed to "heal itself".
|
|
|
|
|
/// @return `YES` if the given status code is an error, `NO` if it isn't.
|
|
|
|
|
+ (BOOL)isErrorStatusCode:(PEPTransportStatusCode)statusCode;
|
|
|
|
|
|
|
|
|
|
/// Is the given status code a critical error?
|
|
|
|
|
/// @note A transport emitting this is _not_ supposed to be able to "heal itself".
|
|
|
|
|
/// @return `YES` if the given status code is a critical error, `NO` if it isn't.
|
|
|
|
|