in Source/TNLHTTP.h [231:256]
NS_INLINE BOOL TNLHTTPStatusCodeIsDefinitiveSuccess(TNLHTTPStatusCode statusCode)
{
if (!TNLHTTPStatusCodeIsSuccess(statusCode)) {
return NO;
}
/// Start: ignore these comments in Swift which are for the relevant ObjC code
switch (statusCode) {
case TNLHTTPStatusCodeAccepted: // 202
case TNLHTTPStatusCodeNonAuthoritativeInformation: // 203
case TNLHTTPStatusCodeMultiStatus: // 207
case TNLHTTPStatusCodeAlreadyReported: // 208
case TNLHTTPStatusCodeInstanceManipulationUsed: // 226
{
return NO;
}
default:
{
// All other 2xx HTTP Status Codes are definitive
return YES;
}
}
/// End: ignore these comments in Swift which are for the relevant ObjC code
}