             return "Incorrect old password."
         case .passwordWithoutUsernameOrOldPassword:
             return "Password should only be provided when updating it or updating the username."
+        case .malformedPayload:
+            return "Malformed JWT payload received."
         }
     }
 }

        case .incorrectPassword                     : return .unauthorized
        case .incorrectOldPassword                  : return .unauthorized
        case .passwordWithoutUsernameOrOldPassword  : return .unprocessableEntity
        }
    }


    case incorrectPassword
    case incorrectOldPassword
    case passwordWithoutUsernameOrOldPassword
    case malformedPayload
}

// MARK: - AbortError
